Yes theres several ways, you can wirte a prerender script, call a acript or launch the render form commandline.
I'm wondering if this can be written into a .bat script
Yes just call (please note if you call this from commandline itself and not a batch file %%i becomes %i)
put this in your bat file
FOR /F %i in (file.txt) do render -s %i -e %i mayaFilename
you may wish to put echo after do as long as your working with testing the script
then put the frames you want to render in a file named ffile.txt (in same directory as the bat) like this:
this si not the most optimal way but good enough + even if it crashes it will continue on the next frame