Are there any ways to write the `$` sign in a parameter file using a command task?

I have tried to use something like
`printf "\x24\x24PARAM_NAME=PARAM_VAL\n" >> parfile.parm`  

however this gives me the problem of having to escape the quotes and slashbacks, and the task fails no matter what I try.

thanks for the help