there's an even easier way to restart your computer using just the keyboard. Simply press and hold Control + Command + ...
not as flexible as the Restart-Computer cmdlet. An additional prerequisite for the command to work is, ensure that WinRM is configured and allowed through the remote computer’s Windows firewall.
This command will shut down your computer without preserving the application state. The commands for restart are ‘shutdown /r /t 0’ and if you want Windows to use fast-boot, then the command ...