Consider this sample Rapise script (SampleTest.sstest):

function Test()
{
    Tester.Message(g_variable1);
    Tester.Message(g_variable2);
}

You should use the following command-line syntax to run the test:

cscript "c:\Program Files (x86)\Inflectra\Rapise\Engine\SeSExecutor.js" "SampleTest.sstest" "-eval:g_testSetParams={g_variable1:'hello',g_variable2:'goodbye'};"

(which passes the values 'hello' and 'goodbye').

The results will be saved in the "last.trp" report file.

If you wish to override the report file name pass lastReport to SeSExecutor.

cscript "c:\Program Files (x86)\Inflectra\Rapise\Engine\SeSExecutor.js" "SampleTest.sstest" "-eval:lastReport='Reports\\SampleTest.trp'" "-eval:g_testSetParams={g_variable1:'hello',g_variable2:'goodbye'};"

If you want to add a date-time suffix to the report name format datetime variable and use it like this:

for /f %%a in ('powershell -Command "Get-Date -format yyyy-MM-dd_HH-mm-ss"') do set datetime=%%a
cscript "c:\Program Files (x86)\Inflectra\Rapise\Engine\SeSExecutor.js" "SampleTest.sstest" "-eval:lastReport='Reports\\SampleTest_%datetime%.trp'" "-eval:g_testSetParams={g_variable1:'hello',g_variable2:'goodbye'};"