Occasionally it is necessary to prompt a user for input in a Powershell script. In my case I just need to remind the user to do something, but the same command can get the user input and store it in a variable.
$input=read-host "Hey user, enter some text!"
The text that enters in the above example is save in the $input variable.