概要
参考:
PowerShell でのエラー/例外処理について – Qiita
Error Action Preference
エラー発生時に実行を停止し、例外を生成する。
$ErrorActionPreference = 'Stop'Code language: PowerShell (powershell)
ドキュメント:
$ErrorActionPreference | Microsoft Learn [公式]
参考:
PowerShell で例外を捕まえられない – Qiita
PowerShell のエラーハンドリングについて | Sky Tech Blog