To use command prompt in Windows 7, Windows Vista and Windows XP open run box (winlogo+r) and type “cmd” without quotes. commands are:
“shutdown -s” to shutdown windows
“shutdown -r” to restart windows
“shutdown -l” to log off
“shutdown -a” to override shutting down process
After inserting the command hit enter. A pop up dialog will appear informing you that windows is about to shutdown/restart/logoff in 30 seconds. You are done.

Command Prompt ma one nahe... meka run eken gahuwath wada...