Prompt for user input in PowerShell

I want to prompt the user for a series of inputs, including a password and a filename.

I have an example of using host.ui.prompt, which seems sensible, but I can’t understand the return.

Is there a better way to get user input in PowerShell?

4 Answers
4

Leave a Comment