what you want to be looking into is the "-prompt" flag in the command line. This command essential opens the maya file without the GUI and allows you to run mel commands. While it is still technically opening the file, it is extremely fast because it does not have to load anything related to the intereface.
Look in the help docs for:
"Start Maya from the command line"