In the last few weeks, I have written a good number of PowerShell scripts that accept input from the user in the form of traditional prompt boxes (e.g. in one situation, I needed the user to enter Sql connection string to execute custom actions against a database). And it appeared to me it might be useful to share the function to produce a simple prompt box in PowerShell.
So without wasting much time, here's the function: