PowerShell PowerShell Start-Process notepad while (Get-Process -Name notepad -ErrorAction SilentlyContinue) {Start-Sleep -Seconds 1} 123 Start-Process notepadwhile (Get-Process -Name notepad -ErrorAction SilentlyContinue){Start-Sleep -Seconds 1}