Getting user input in windows powershell scripting

Below example shows how to take input from the user in Powershell.
 
$age = Read-Host “What is your age”
echo “Your age is $age”

#Note that echo is an alias for Write-Output and Write-Host

Web development and Automation testing

solutions delivered!!