.BAT files are lists of instruction to be done by te command prompt,and all of the commands are just DOS commands.
IDK But I think u must use something that can be rendered in html
You can compile an Exe, but avoid bats if possible.