Start-Process基本Start-Process notepad ワーキングディレクトリの指定Start-Process C:\bin\foo.exe -WorkingDirectory C:\bin 起動するプロセスが終了するのを待つstart -FilePath "notepad.exe" -Wait 管理者権限でプロセスを起動するstart powershell -Verb runas ウィンドウを最大化して起動するstart -WindowStyle Maximized notepad 起動するプロセスに引数を指定するstart notepad foo.txt 起動したプロセスが終了するのを待つstart notepad $proc = Get-Process notepad $proc.WaitForExit() 参考 |
|