This is demo of a simple script I wrote that can be used to mass shutdown or reboot any Windows hosts that are in the hosts.txt file. The script is menu driven and allows the user to view the hosts that are in the txt as well as edit it. The is also a built in status check to see if the machines are online or offline. Powershell makes automating simple tasks like this so easy!
Download script –