Had some problem passing vm name to Get-VMGeust function, and added get-cred for authentication
Had some issue looping vm's