Script Download: AddLockRestart(VBS).ziphttp://gallery.technet.microsoft.com/scriptcenter/Add-Restart-Shutdown-Sleep-dd5b6619
It will be more convenient if there are "restart", "shutdown", "sleep" and "lock" in context menu.
You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery