I know the following is probably not the most efficient code in the world but its how I thought of solving the issue through my own volition.
I'd like to do the following:
$1 = "Mazada"
$2 = "Toyota"
$3 = "Mitsubishi"
$car = Read-Host "Type Variable here"
Write-Output = $car
Now the final product would give you a list of the variables in "Read-Host" command and then you would know what to type in. I know I have to solve that problem for those of you noticing the missing ingredients in the script.
Ideally I would like for anyone to type in the car choice like "$3" in the Read-Host portion and then assign it to the $car variable so that it outputs Mitsubishi.
What am I doing wrong ?
If I type in $3 i just get = $3
Thank you very much