I’m trying to put a condition in my script to prompt the user to continue or stop the execution.
I have used read-host cmdlet, it asks for user input and two tabs ‘Ok’ and ‘Cancel’. If i press Ok the script execution continues and if i click on Cancel, execution stops at that point but i believe that i not the purpose of read-host ( i expects an input from user ). Is there any cmdlet or procedure to prompt the user to just stop or continue the execution of powershell script.
Please let me know , thanks in advance