Saving the Session Script

The File menu option Macros > Save session script as saves all processed script commands. You can then run this script to recreate all actions processed in the GUI exactly. You can adapt the script to your needs and create a workflow for automated batch analysis.