There is a way to shutdown Windows 7 using the command prompt. In fact there are several switches available too.
To see all the available shutdown options in Windows 7, type cmd in start search and hit Enter.
In the cmd window, type type shutdown /? and hit Enter.
This will list you the switches and shutdown options available.
To shutdown your PC type : shutdown / s
To restart your PC type : shutdown / r
To logoff your PC type : shutdown / l
There are other, interesting options too.