You can render from a command line if you want to render an animation or single frame. Advantages include the following:
For more information, see Command line renderer in the Rendering Utilities guide.
mental ray for Maya command line options
The following mental ray for Maya command line options are supported during IPR: