Comment
$password=Read-Host -assecurestring "what is your password?"
is better than showing the password in clear text and then using Clear-Host.