Closed FailEnd closed 3 years ago
hi,I want to use the command that "ps.add_cmdlet" to ban the e-mail address,but now it seems that I can use"-Confirm:$false"to realize it.
You definitely can, a switch just acts like a boolean so you do .add_parameter('Confirm', False) or if you have a dict the key is the name (Confirm) and the value is False.
.add_parameter('Confirm', False)
Confirm
False
hi,I want to use the command that "ps.add_cmdlet" to ban the e-mail address,but now it seems that I can use"-Confirm:$false"to realize it.