Convert a plain text string to a secure string
$password = Read-Host "Enter your password" $securePassword = ConvertTo-SecureString $password -AsPlainText -Force