I just turned this into an Add-On: https://troikatronix.com/add-ons/auto-re-launch-isadora-macos-applescript-for-installations/
It's basically the exact same as what I have here but I also provided the link to my macOS Isadora Production Computer Setup Guide