>>461
2.0でいいならこんな感じで

$i = New-Object Diagnostics.ProcessStartInfo
$i.FileName = "C:\WINDOWS\system32\ping.exe"
$i.Arguments = "0.0.0.0"
$i.CreateNoWindow = $true
$i.RedirectStandardOutput = $true
$i.RedirectStandardError = $true
$i.UseShellExecute = $false

$p = New-Object Diagnostics.Process
$p.StartInfo = $i
$p.Start()

Register-ObjectEvent $p ErrorDataReceived EchoError -action { "ERROR!!" | out-host }
Register-ObjectEvent $p Exited EchoExit -action { "EXIT." | out-host }
$p.BeginErrorReadLine()

例外発生した時に標準エラー出力に何か出力すること前提だけど