SupportsShouldProcessと-WhatIf/-Confirm
type: Concept
definition: [CmdletBinding(SupportsShouldProcess)]を宣言すると自動で追加される-WhatIf/-Confirmパラメーターと、$PSCmdlet.ShouldProcess()による実行可否の分岐の仕組み。
alternative label: ShouldProcess
alternative label: WhatIf
requires: cmdletbinding
mitigates: unintended-destructive-execution
subject of: article
recommended for: move-item