Reads a line of input from the host console.
Snap-In: Microsoft.PowerShell.Utility
Syntax:
Read-Host [
[-Prompt] <Object>] [-AsSecureString] [-Verbose] [-Debug] [-ErrorAction <ActionPreference>] [-ErrorVariable <String>] [-OutVariable <String>] [-OutBuffer <Int32>]
Description:
The read-host accepts or reads what is input into the host, usually from a keyboard. It allows you to compose a prompt and assign variables to what is input at the prompt. You can also assign a variable to the cmdlet itself.