As a last resort, if you can't figure it out, you might be able to solve the issue by building a single script and filtering what should be shown to the agent based on the current queue.
For instance, if your script only uses 1 page, you can build different versions of it in different pages, and then just load the correct page depending on the current queue.
Depending on the differences you can even build everything on the same page, and just load/hide each component that is needed based on the current queue.
If you don't have many queues or many variations of those scripts, that could work.
------------------------------
Marcello Jabur
------------------------------