You can make it clearer than that... What you said before was "Use ssh to run the command "sudo shutdown -h now" on the Mac." (I repeat ON THE MAC)
For window, that like saying go on cmd then type in shutdown /s...
Now are you trying to say install ssh on the mac (Laptop B) then run the command on the window (Laptop A), explain how does that command even communicate with Laptop B?
Yeah I know. I just want to know if there's a way you can use window to shutdown a mac.
For ex: Shutting down a window to a window (laptop A&B), you would go on cmd then type in shutdown -i and then the ip-address (one click the other laptop shutdown).
If you use the ip-address for the mac, it will say "remote shutdown is not supported on the target computer".