Further to Gary's good advice, the person you want to consult is Suz Shook, queen of scripting.
Her website:
http://suzsplace.com/

You could also ping, in the forum Gary mentioned, Cassell, one of Suz's pupils and an excellent scripter. She might be able to assist.
LeviFiction is also a good script writer, but I haven't seen him posting for a little while.

I never use the batch process, so won't be of any use to you.

Hope any of this helps.
:-)
Grenou