$ 0 0 Something like this ?Get-folder -Name "test" | Get-Vm | %{ Restart-VM $_ -Confirm:$false -RunAsync Sleep 4}