The scripting engine can be also be run from Python using the pywin32 module, which handles COM objects. After installing pywin32, you can write Python scripts like the following example that generates a model's DDL to a seperate file for each Schema: /********** start of script *************/ import win32com.client app = win32com.client.Dispatch("SCF.ScriptFramework") app.Initialize() model = app.LoadModel(r"C:\temp\test.wer") for schema in model.AsObject().Children("Schema") : f = open(schema.Name() + ".sql", "w+") f.write(model.DDL("", "",schema.Name(), "")) f.close() app.CloseModel(model)