Service data template not evaluating when being passed to a called script

Sure. Use your original method and this:

https://community.home-assistant.io/t/100-templatable-lovelace-configurations/105241