Yes, that is something that can't be done easily since it is a new interaction and even if you define the script, you can't supply the variables. Best is to use a script that runs a data action to get the attributes you need to populate the script on script load. You will need to make sure you set these attributes on the conversation and then pull them back in with the data action on load.
------------------------------
Robert Wakefield-Carl
TTEC Digital, LLC dba Avtex
Contact Center Innovation Architect
https://www.Avtex.comhttps://RobertWC.Blogspot.com------------------------------