Something else you might try is to learn in to what it’s doing.
Have it create one template with placeholders… Then ask it to write a script which takes an array of values and the template and outputs a file with the values substituted for the placeholders.