If you use double quotes and the password contains a $ symbol, powershell thinks it is a variable. But if it uses single quotes, it will take it as an explicit value.