Well, the first thing I would do is see what (if anyting) you get from dropping the files onto the script. It may be that you are getting a bunch of unhandled OLE hooks or just a list of filenames (of, course you want the second one).
Second, could Cygwin come in handy on this one? Can you start cygwin with a command as an argument? That would give you a cleaner interface to drop on.
Eh, it's worth a shot