Chapter4/4.8_ErrorHandle/TryCatchSampleExceptionType.ps1
try { Write-Host "try : 処理開始" Get-Process hasdfa -ErrorAction Stop Write-Host "try : 処理終了" } catch [Microsoft.PowerShell.Commands.ProcessCommandException]{ Write-Host "catch : 例外処理 $_" } |