Created
August 27, 2018 21:13
-
-
Save shaneis/38c1bd2866dd218ad53afa3a8c297551 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#region Test-ManualConfirm | |
function Test-ManualConfirm { | |
[CmdletBinding()] | |
param( | |
[int[]]$Numbers | |
) | |
process { | |
foreach ($num in $Numbers) { | |
Read-Host -Prompt "Are you sure you want to process: [$num]" | |
"Current number: [$num]" | |
} | |
} | |
} | |
Test-ManualConfirm -Numbers $Numbers | |
#endregion |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment