有没有办法更改High Impact PowerShell脚本的默认确认选项?
当我实现一个Cmdlet并运行它要求确认时
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"):
Run Code Online (Sandbox Code Playgroud)
如何更改默认值?我想将默认值从"Y"更改为"N".