restart computer through command prompt code example
Example 1: restart windows from cmd
shutdown /r
Example 2: restart computer command linux
$ sudo shutdown -r now
Example 3: how to power down pc using cmd
shutdown /s
shutdown /r
$ sudo shutdown -r now
shutdown /s