This exists. Start an export and stop it. Or, first pause the queue in Jobs and then export a project.
Right-click the export job and choose View XML.
Then, save the XML. Now you have the project file with export info contained that you can supply to qmelt at the command line.
A future version will save the latest export info with the project file and restore the export panel settings when reopened.