If you cannot modify the app then ust add the macro functionality to a shell for calling the app
e.g. using scripting engine
'open database
'delete table
'create table
'run app
There are lots of web sites that will show you how to do the above using wscript.