Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#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
You can’t perform that action at this time.