Created
September 10, 2015 08:19
-
-
Save DBremen/778414455f932e1f9ac8 to your computer and use it in GitHub Desktop.
Usage of built-in PromptForChoice
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
$Title = "Title" | |
$Info = "Pick Something!" | |
$options = echo Option1 Option2 Option3 | |
$defaultchoice = 2 | |
$selected = $host.UI.PromptForChoice($Title , $Info , $Options, $defaultchoice) | |
$options[$selected] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment