See Graham Mayor's batch file handling Add-Ins. The second one (process 4) may do what you need. Otherwise, you will probably have to create your own macro to be called by the Add-In.
If it does help, I would urge you to make a donation to Graham for all of the time he will have saved you.