function ParamCount: integer;

Returns the number of parameters passed on the command line.
ParamCount returns the number of parameters passed to the program on the command line. Separate parameters with spaces or tabs. Use double quotes to wrap multiple words as one parameter (such as long file names containing spaces).

var i :integer; begin for i := 0 to ParamCount-1 do writeln( ParamStr(i) ); end.

Example:
dbfscript.exe test-param.dbfscr /RUN filename.dbf /param1 /param2 /paramN