Hi Pat,
Just to let you know that this did work and was an absolute lifesaver, thank you so much. I ended up tweaking it to run in Vectorworks 2022 and extending that final 'delay' to 10 to prevent crashes on big files—I might see if I can get it to delay while the exporting window remains open, but that's a challenge for another day.
Thanks again for your help.