..once you have a working batch file?
Are you open to downloading some software?
Several examples in access databases (VBA - could in theory be used from a script)...but most likely of use to you is the example posted by indesisiv, who provides this executable (in a zip):
which can be used from the command line - and thus from your batch file.
Hope this helps, let me know.