If you want to render an animation, start a batch render from within the Maya UI. You can also render a single frame this way. Advantages include the following:
easy to use
you can continue to use the Maya UI
you can start a batch render while you continue to work within Maya
you can interrupt the render at any time from within Maya