Executing a mel outside of maya

I am currently programming tools in mel to help us find and import objects from our library. I would like to use an external program that would import lots of objects in one scene then save that scene. I woul like to be able to do it in a command line or something similar.

Is there a way to excetute scripts that way, it would look something like this. I run maya in the command line with flag so that the mel is executed. (I don't care if the maya interface opens up by itself).

ie. Maya.exe -runmel myMel.mel -myMelFlags

I hope this is clear and that someone can give me some help about this

Thanks

You can run Maya in a non GUI mode and then execute MEL commands at the prompt. I forget which flag you need to use...

Thanks for the reply...at least I know I am not loosing my time looking around about this.

If anyone could have more info on this, it would be greatly appreciated.

Thanks

at the commandline execut e maya -h and it will show you the available flags

why is it always so obvious when you have the answer...

Thanks a lot, it's exactly what I need!