I know this is a very old post but I’ve found a solution for full automation.
You just need to use
One minus of this approach is that if you want to use it in a batch file then you need to add delay if any other functions will be running after that one because it exits right after execution and not after generating files has been finished.
But if you use Python them Subprocess.popen and .communicate() works like a charm.