Passing variables to a script

You have to use data_template because the variables contain templates. Here are several other examples where the solution is to use data_template:

Because, as I mentioned, I suspect there are other problems and I’m currently trying to reproduce your scripts on my system to identify them.