System.Management.Automation.CommandMetadata
object can be used to query meta information about a PowerShell command. CommandMetadata
object can also be passed to several methods of the System.Management.Automation.ProxyCommand
object. ConfirmImpact
property, whose type is System.Management.Automation.ConfirmImpact
is used to determine if a user of a PowerShell command (such as cmdLets, aliases etc.) are requirec to confirm their actions. This is the case if the value of ConfirmImpact
higher or equal than that of the preference variable $confirmPreference
.