The simplest way to ask for input is with the Read-Host cmdlet.
You can also use WinForms, but that requires a bit more lines of code.
Have for example a look at Alan's Simple PowerShell selection box post.
To include code-coloured code in your posts have a look at Some ways to enter PowerCLI code under the new forum SW