Running exporter scripts from command line

Hi, I have system where I would like to be able to run exporter scripts from the command line (specifically the ogre mesh exporter). I know how to run it, but is there a way to set the parameters from the command line? I want it to run without requiring any user interaction and the command line program will determine which settings to use for which meshes.

create a script that calls the command with all settings as desired, then run blender via command line and tell it to load the .blend you want, followed by the script.

something like this:
blender.exe -b test.blend -P

Oh, thanks that should work really well.