Transfer the call to an Architect flow instead of directly to the other queue (I use a button in the first script to transfer to a Secure IVR flow, no return to the agent, and instead of performing the secure functionality I use that flow to transfer to the new queue with the script and other settings I want).
If you search through the Community, I did a Q&A video session on it and also posted on a couple of threads.
------------------------------
George Ganahl GCP (Genesys Cloud), ICCE
Principal Technology Consultant
Genesys
------------------------------