Update PingVMsOnHost.ps1

Cleaned up While code and created a timeout