You can try using sshpass: Power on / off NAS by using WOL and SSHPASS
Depending on what type of updates you want to be notified for of what commands you want to execute, you can as an alternative place a small Python script on the machine and make it “call home” through for instance MQTT or through the REST API and update a sensor or any other entity in HA. I have a few scripts on satellite machines that sends various performance data home to HA that way.
The script can also listen for commands from HA or appdaemon through MQTT and perform any required actions directly on the machine, i.e. acting as a daemon.