Add PASSWORD contextualization string from user input

I have a template with a user input:

  PASSWORD="M|text|Enter desired login password:| |" ]

When a user instantiates the VM and types in a good password, this line gets added to or one_env:


Instead of ‘abc123’ the password gets set to “dollar sign - pee - ay - ess - ess…”. Obviously not what I want. I know I should use PASSWORD_BASE64 but the Windows contextualization script doesn’t understand this. It wants PASSWORD="abc123" in the file. How do I make it do this? Why does ONE add PASSWORD="$PASSWORD" - where does it get that from?