Is there a way to change the default confirmation option for a High Impact PowerShell script?
When I implement a Cmdlet and run it asking for Confirmation like
MyPS
Confirm
Are you sure you want to perform this action?
Performing operation "XYZ" on Target "123".
[Y] Yes [A] Yes to All [N] No [L] No to all [S] Suspend [?] Help (default is "Y"):
How can I change the default value? I want to change the default from "Y" to "N".