I found out what I was doing wrong. Hope this helps others.
If you take the line
"Name=password", "Value=Passwor", ENDITEM,
as an example. I was only highlighting the Password. This did not give me the option of encrypting. I found that I needed to highlight Value=test1234 then right click and select Encrypt string. In doing so I was able to encrypt and the script ran fine.