The attached script is only verified with EEVX.2.2
With Automation, there is no direct command to run "Export ->eDxD Schematic", which by default creates an encrypted ccz file with the extension .cce
Instead, the command needs to be executed by a wrapper, that is then executed via "ViewLogic.exe" as shown below.
Basically, what happens below is that a command string is built, based on project data. This command string is then called using "Viewlogic.exe"
The attached script uses a few of the switches that can be used in the command line for eDxD Schematic export. All switches are listed in the script, for details please look at the documentation and the "Export -> eDxD Schematic" GUI in Xpedition Designer.