$temp = Import-Csv C:\Users\Administrator\Desktop\book1.csv
 foreach($i in $temp)
 {
 Remove-VM -Server 192.168.1.3 -DeletePermanently -VM $i.Name -ErrorAction SilentlyContinue -Confirm:$false
 }

Advertisement