Okay, so a key thing to note about ChatGPT (and really any language model AI) is that it doesn’t “know” or “believe” anything. When it comes to code, especially, you can really start to see the predictive nature of the model kick in. It likely pulled that code from a different program entirely, or cobbled together something that looked correct based on the data it had about World Machine. Having used ChatGPT myself to help dip my toes into software development, I can tell you beyond any shadow of a doubt that while it is capable of writing useable code, a lot of the time it gets languages mixed up, or gets confused about what features are built-in to a language and what need to be added, etc. It especially seems to struggle with any sort of software specific language, which the automation scripts for World Machine are. ChatGPT can be a great tool, but it does have its limitations.
Now more than ever, I’m fairly positive that what you are attempting to do isn’t possible with the automation scripts. If you’re finding yourself doing those two steps every time you start a new project, however, you should be able to fairly easily create a blueprint or a macro, or even just edit the base startup project to suit your needs. Realistically, all three of those options would likely be faster/fewer clicks than the automation script anyway!