NppExec supports several different ways to use run-time parameters which you can vary according to your needs.
The first line of each section below shows how the run-time parameter(s) can be set, and the second line shows how these parameters can be used.
NPP_EXEC "my script" "param 1" "param 2" -> $(ARGV), $(ARGV[1]), $(ARGV[2]), ...
INPUTBOX "Input some value:" : "default value" -> $(INPUT), $(INPUT[1]), $(INPUT[2]), ...
SET variable = value -> $(variable)
ENV_SET variable = value -> $(SYS.variable)
See also: User (internal) variables [3.8.2]; Environment (heritable) variables [3.8.3].