Parameter | Details |
---|---|
Target | The resource being changed. |
Action | The operation being performed. Defaults to the name of the cmdlet. |
$PSCmdlet.ShouldProcess()
will also automatically write a message to the verbose output.
PS> Invoke-MyCmdlet -Verbose
VERBOSE: Performing the operation "Invoke-MyCmdlet" on target "Target of action"