how to restart command prompt in windows 10 code example Example: restart windows from cmd shutdown /r