Later Later Edit:
Managed to work out some solution with DXL scripting. Created a DXL script that will export the entire document and i was able to run this DXL via command line.