This is an outdated way to run scripts and it SHOULD NOT BE USED. To run script files or portions of script files, use the run object.
Execute a script in a script file (.OGS) located in the current working directory by using the file name as if it were a command object. If a file is added to the working directory while Origin is open, you must use a dir command for Origin to recognize the file as a command object. The command can take up to five arguments. Arguments are passed as strings and an individual argument can contain spaces if protected by parentheses. The current working directory can be changed by cd X-Function command.
OGSFileName.SectionName [arg1 arg2 ... arg5]
OGSFileName [arg1 arg2 ... arg5]
In the special case where no SectionName is given then
The following example runs [MySection] section in MyScripts.OGS in the current directory with two arguments, aa and bb that are passed to the script as strings and received as %1 and %2:
MyScripts.MySection aa bb;
The following example runs the [Main] section code in MyScripts.OGS in the current working directory with two arguments aa and bb that are passed to the script as strings and received as %1 and %2:
myScripts aa bb;
OGSFileName.SectionName (command), Run (object)