Search notes:

System.Management.Automation.CommandMetadata (class)

A System.Management.Automation.CommandMetadata object can be used to query meta information about a PowerShell command.
A rudimentary example that tries to demonstrate that is here.
A CommandMetadata object can also be passed to several methods of the System.Management.Automation.ProxyCommand object.

ConfirmImpact property

The 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.

Index