Render the second last frame in an animation as a JPEG image, saved to an existing directory (relative path)
blender --background path/to/file.blend --render-output //output_directory --render-frame JPEG --render-frame -2