Update PingVMsOnHost.ps1

Fixed bad code