You are brave to try this but this approach won't fly. The started application is completely separate from the batch file.
I have automated similar work by writing a
PERL script that uses the SAMIE module. What the module does is install a call back in IE. Whenever IE concludes that a page has loaded, it returns control to the
PERL program. The
PERL program can then interact with the DOM object currently in IE, like reading a particular bit of data. The
PERL program can then do something with the data, like writing it to a log file.
It is actually fun to watch the IE screens pop up when the process runs. Of course, I should be doing other work, not watching the automation run.