You have to run it on via the command line on your windows machine. Open a command prompt by pressing "windows"+"r" and type in "cmd", then the command prompt will open. Type in the first line of the code (altered to your scene and project, of course), hit return and wait what's happening. Maya should fire up, but without the GUI, so you save that memory for rendering.
You maybe have to change the code to something like
"c:\program files\autodesk\maya2008\render.exe" -r mr -x 5000 -y 3000 -reg 0 999 0 3000 -proj "c:\documents and settings\your project" yourscene.mb
render.exe starts maya (so insert the correct path to the file here), -r mr stands for mental ray as the renderer, -x 5000 -y 5000 is the total resolution of the image, -reg is the region you want to render, -proj <yourproject> defines the path to the project root, yourscene.mb is the scene you want to render. It will take all settings saved in the render settings with your scene, unless you override them (i.e. with the -r flag or any other flag, like -im part1, which sets the name for your image).
Command line rendering is documented well in the Maya docs, take a look at it.
As Sushant already said, you can make a batch file (just create a .txt file and rename it to the extension .bat) and put all necessary commands in there. When you start that batch file, maya will render all of the lines included.