#author("2018-11-03T10:22:41+09:00","default:ryuichi","ryuichi")
#author("2018-11-03T10:24:05+09:00","default:ryuichi","ryuichi")
* Start-Process [#r1f88856]
*** 基本 [#v40a5ce1]
Start-Process notepad
*** ワーキングディレクトリの指定 [#l942e581]
Start-Process C:\bin\foo.exe -WorkingDirectory C:\bin
*** 起動するプロセスが終了するのを待つ [#r732d75c]
Start-Process -FilePath "notepad.exe" -Wait
start -FilePath "notepad.exe" -Wait
*** 管理者権限でプロセスを起動する [#fa129d52]
start powershell -Verb runas
*** ウィンドウを最大化して起動する [#o74a7884]
start -WindowStyle Maximized notepad
*** 起動するプロセスに引数を指定する [#m285e694]
start notepad foo.txt
*** 起動したプロセスが終了するのを待つ [#a71f67e7]
start notepad
$proc = Get-Process notepad
$proc.WaitForExit()
** 参考 [#ca3f814b]
- https://msdn.microsoft.com/en-us/powershell/reference/5.1/microsoft.powershell.management/start-process
- https://stackify.com/what-is-powershell/