https://rakhesh.com/powershell/reboot-a-bunch-of-esxi-hosts-one-after-the-other/
Reboot a bunch of ESXi hosts one after the other