I have a js file
You can't, per se.
You can use the browser to request a URL (and you can do it from a button by submitting a form), but you need an HTTP server listen to the request for the URL and react accordingly.
Ideally you would rewrite
batch.js so it was a module and then write a webserver in Node (e.g. using Express) which would load the module and call a function exported from it when the given URL was requested (and then respond to the browser).
More hackily, you would spawn a new instance of node whenever that URL was requested and run your
batch.js without modification. That would let you use any HTTP server you like and any programming language to write the server side program that would execute