I am trying to write a script to restart a server and then email when the restart is done.
I started with this basic command: Restart-Computer -ComputerName <string[ ]>,
But I can't get it into a script and I need it as a scheduled task, and then the email when the server is back up?