PowerCLI 10.2 Get-VM error
In version 10.2 of PowerCLI, the Get-VM command will fail, causing all current VMs to be deleted since the VM array will be empty.
A workaround is to use $VMs = Get-VM -Name "*", which will bypass the issue of unavailable VMs.