Shut down or restart computer via Remote Desktop in Windows 7

It is very simple

For Windows 7 press the start button and in the search box type in shutdown /r
This will reboot your computer.

If you are using Windows Xp you can right click on your Taskbar and open TaskManager and on the TaskManager window you will see the Shutdown menu and can choose your options there.