It works directly connected, or if you export it and use a sender to start it like my drag/drop script. It doesn’t work from the touchscreen because the header setup is to bypass the entire process of setting focus, origin, etc manually and is instead fully automated.
To use the touchscreen, remove the start/end gcode and change the origin to user origin instead of absolute coords.