It keeps prompting me for password

it keeps prompting me for password instead of inputting the password here is my code

 

$UserPassword = ConvertTo-SecureString “Pa$$w0rd!” -AsPlainText -Force

New-localuser -name $_.name -Description “user”

Set-LocalUser -name $_.name -Password $UserPassword –Verbose

https://social.technet.microsoft.com/Forums/en-US/4423f891-a5a9-4d76-81e8-73510fddd812/it-keeps-prompt-me-to-enter-password?forum=winserverpowershell