$Credential = $host.ui.PromptForCredential("Need credentials", "Please enter your username and password.", "NetBiosUserName")
Start-Process -Credential $Credential -FilePath C:\windows\notepad.exe -ArgumentList "c:\windows\system32\drivers\etc\hosts" -Wait
not a typo issue when entering username + pw 100%.