If this will be of any help to anyone in the future, I found a solution.
In my batch file, before opening the database, I had it create a token file.
In the db, create a new module which looks to see if the token file exists. If it does, run the export CSV macro and exit. If it doesn't, open...