The following command executes a BASIC script named TEST.BAS. It also, upon execution, passes the variables defined from the FUNCTION/ line into the TEST.BAS script:
CS2=SCRIPT/FILENAME= D:\PROGRAM
FILES\PCDMIS35\TEST.BAS
FUNCTION/ShowVars,SHOW=YES,ARG1=3,ARG2="Hello",ARG3=2.5,,
STARTSCRIPT/
ENDSCRIPT
Now here's the TEST.BAS script; on execution, it displays the passed in variables in their respective message boxes:
Sub ShowVars(IntVar As Integer, StrVar As String, DoubleVar As Double)
msgbox "The passed integer variable is " & IntVar
msgbox "The passed string variable is " & StrVar
msgbox "The passed double variable is " & DoubleVar
End Sub