How to Prompt for Input in PowerShell (Read-Host Examples)
To prompt for input in PowerShell, use Read-Host. It shows your message, waits until the user types something and presses Enter, and returns what they typed: Output (what I typed follows the colon): PowerShell adds the colon and space after your prompt text, so leave them out of the message. The value goes into $name, … Read more