Laptops are cool for some scripting on the go. But sometimes you need to check on your juices. You don’t want to end your PowerShell session mid-command! Enter the commandline battery indicator.
Rebooting a switch is easy. Having patience enough to not frantically click the F5 button to check if the webinterface is back online is next to impossible. Here’s a quick PowerShell snippet with a solution!