Hi,
You can find an example of a VCMA script in the mumax
workshop, in particular session 4. If you'd like to make changes like doing multiple stacks of materials, you'll have to make some tweaks. The other sessions of the workshop should cover how to make the types of changes you'd need.
Best regards,
Josh L.