In the nas AO profile the arguments/parameters are passed as a comma separated list. these will be available to the script contained in the constant SCRIPT_ARGUMENT
Excerpt below from the NAS Tech Brief version 3.60
SCRIPT_ARGUMENT = the argument string passed from the executing AO profile.
In the lua script you will extract the individual arguments into an array like this
args = split(SCRIPT_ARGUMENT,"/,") --split the string at the comma into individual elements
If I only pass in one argument, like robotname, then I could just use something like this
robotname = SCRIPT_ARGUMENT
or just use the SCRIPT_ARGUMENT constant to reference the robotname.