I\'m trying to take user input and before proceeding I would like get a message on screen and than a confirmation, whether user wants to proceed or not. I\'m using the follo
This is a simple loop that keeps prompting unless the user selects 'y' or 'n'
$confirmation = Read-Host "Ready? [y/n]" while($confirmation -ne "y") { if ($confirmation -eq 'n') {exit} $confirmation = Read-Host "Ready? [y/n]" }