Shutdown remote windows PC's

What is the best method of turning of remote windows PC’s using hass.io?

I haven’t tried this yet but there a example on the bottom of the Wake on Lan Switch


Basically it involves calling a script that ssh’es into your computer and calls a command to shut down your computer

Yes WOL is the way. I have mine turn on via WOL and sent to sleep via a Join message and Tasker command. See my other answer here: