Can flash pass variables to a batch file?

I’m using bat files for launching external docs, and was wondering if there was a way around using 1 bat file per each doc. I have many docs.

thanks