@@ -0,0 +1,370 @@
+#!/usr/bin/env blender%0A%0Aimport sys%0Aimport os%0A%0Aimport bpy%0Aimport addon_utils%0A%0Adef _main(args):%0A  print(%22Writing%22, args)%0A%0A  default, state = addon_utils.check(%22io_EDM%22)%0A  if not state:%0A    import io_EDM%0A    io_EDM.register()%0A%0A  # Call the import operator%0A  bpy.ops.export_mesh.edm(filepath=%22test.edm%22)%0A%0Aif __name__ == %22__main__%22:%0A  if _main(sys.argv) == -1:%0A    sys.exit()

Add a very simple test writing script