Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Edit all the things!
#region Test-EditedConfirm
function Test-EditedConfirm {
ConfirmImpact = 'High')]
process {
foreach ($num in $Numbers) {
if ($PSCmdlet.ShouldProcess("Guess what this does? [$num]",
"Are you sure you want to process: [$num]",
'STOP!')) {
"Current numbers: [$num]"
Test-EditedConfirm -Numbers $Numbers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment