there's an even easier way to restart your computer using just the keyboard. Simply press and hold Control + Command + Power/Eject/Touch ID button on your keyboard until your Mac restarts.
Use Remote Desktop Connection Restart using Windows PowerShell ... This post shows you in detail how to Remotely Shutdown a Windows computer using Command Prompt. Of course, we would talk about ...