Hi! That's an amazing capability! Where are commands like ExportLayer documented? How would one figure those out?
The commands aren't documented publically anywhere, the best and quickest way to start a script and figure out the commands you want is to create a practice one (i.e. do the things you want in ArtRage and record it), then edit the document it gives you.