Use whatever version that is compatible with your hosts.
- Add your ESXi host FQDNs as needed to the # Define ESXi Hosts section.
- Launch with PowerShell as normal.
- This script assumes you are connecting with the root user.
- Enter the root password.
- Search for your VM.
- Type exit when done.