powershell read-host code example
Example: powershell get input from user
$Server = Read-Host -Prompt 'Input your server name'
$User = Read-Host -Prompt 'Input the user name'
$Date = Get-Date
Write-Host "You input server '$Servers' and '$User' on '$Date'"