Command Detail - R
read -p
In *nix:
read -p "Which is the only London club to win the Champions League? " team
echo $teamIn Powershell:
$team = read-host "Which is the only London club to win the Champions League?"
Which is the only London club to win the Champions League? : Chelsea
$team
ChelseaTo not echo the input to screen, you would do
$SecretString = read-host "Whats your secret? "-assecurestringThis echoes out an asterisk for each character input
rm
Remove-ItemLast updated