Adding a Yes, No, Cancel prompt to a PowerShell script

Adding a Yes, No, Cancel prompt to a PowerShell script

App-Dev 1 min read
Continue Reading

When I write PowerShell scripts, I often want to step through sections. This allows me to decided whether to proceed with parts of my script or not. I achieve this by using the ChoiceDescription class as demonstrated below.

More information about using prompts in PowerShell can be found in the following article and tip on Microsoft TechNet.