Cmd.exe is the command prompt in the Windows operating systems. In the command prompt you can type commands to control your computer. Some applications can be run in the command prompt (such applications which don't have any graphical user interface). cmd.exe simulates MS DOS.
You can shutdown the computer by typing "Shutdown -S" without the citation marks. Type only "Shutdown" to see other possible shutdown based functions.