Windows Management Instrumentation or WMI holds many surprises and features but when my colleague's machine rebooted even I was surprised. Using WMI allows you to create management type applications and of course, being able to reboot a remote computer is a necessary feature. Of course, it requires you have an admin logon account to the machine.
In this code written with Beta 2, you will need to change the username, password, and ip address to access your own machines.
While WMI is a great feature it may be exposed as a security risk. If you have no intention of using its features on your network you may want to disable it. Enjoy.