It is quite easy to run a script from another script. Simply use:
app.doScript(File('path to the other script'));
but simulating clicks on the dialog buttons is next to impossible (it might be possible, in a windows enviroment to use a combination of vbscript and AutoIt - AutoIt, but in the end it's such a hassle you would better just write the whole script from scratch to do what you need)