look at using restart-computer with the -wait parameter – - that makes the process wait until the machine has rebooted.
If you add the -For parameter as well you can tell the reboot process to check for specifics
↧
Reply To: Schedule rolling reboots with service check & email?
↧