(Andere) PC herstarten met CMD Opdrachtprompt

shutdown \\computername /y /c /t 1

/y forces a yes answer to all messages from the computer
/c quits all running programs

You can add /r to restart instead of shutdown
You can add /t:xx to set a time to shutdown
You can add "msg" where msg is a message to display on shutdown