I have been looking to automate more processes at work and patching ESXi hosts was definitely in my top 5 PowerCLI projects. I really like the simplicity of Ben Liebowitz’s script over at The Lowercase w. I will use this as a starting point for my own script. (Not that it needs too much tweaking. Good job Ben!)
Please follow the link below to see the script.