I think in manifest version 5 with API version 2 in PS 23 inside executeAsModal
you would probably wait forever because you start modal mode in first place but batchplay can’t run within modal mode so you would get into a deadlock.
Could you show your manifest?
Also, I made a new panel that could generate plugins for you Sorcerer - New Alchemist panel to generate plugins
Please check the video and try same/similar steps and let me know whether that worked.