Use Get-Credential instead of Read-Host -As...