The EG automation model allows you to access and set values for project parameters -- those parameters that you've defined with the Tools->Parameter Manager.
Here is an example VB script that works with parameters that you've defined in your project.
[pre]
Option Explicit
Dim app
Dim prjName
Dim prjObject
Dim parmList
Dim parm
prjName = "C:\temp\autowithparams.egp" 'Project Name
' start the app and open the project
Set app = CreateObject("SASEGObjectModel.Application.4")
Set prjObject = app.Open(prjName,"")
' discover the parameters
Set parmList = prjObject.Parameters
Wscript.Echo "Project has " & parmList.Count & " parameters."
' work with the first parameter
Set parm = parmList.Item(0)
WScript.Echo parm.Name & " parameter has default value of " & parm.DefaultValue
parm.Value = "M"
WScript.Echo parm.Name & " parameter has been set to value of " & parm.Value
' run the project
prjObject.Run
WScript.Echo parm.Name & " parameter has been set after Run to value of " & parm.Value
prjObject.Close
app.Quit
[/pre]
Chris