commands detail - r

read -p

In *nix:

  1. read -p "Which is the only London club to win the Champions League? " team
  2. echo $team

In Powershell:

  1. $team = read-host "Which is the only London club to win the Champions League? "
  2. Which is the only London club to win the Champions League? : Chelsea
  3. $team
  4. Chelsea

To not echo the input to screen, you would do

  1. $SecretString = read-host "Whats your secret? "-assecurestring

This echoes out an asterisk for each character input

rm

  1. Remove-Item