Your icon says that you are using Ubuntu Linux, so you should use
or
Code:
sudo shutdown -r now
In both cases you have to adjust your sudoers-file to allow the command without giving a password, if you want to run this in a script. You can do this with the command
For more infos look at:
Code:
man reboot
man shutdown
man sudo