(>K:scriptgroup-scriptname;param1;param2)
calls the script definied as „scriptname“ in „scriptgroup“ with two parameters
(L:Joes-LightPot86_SET) 86 (>K:2:LIGHT_POTENTIOMETER_SET)
works for just lightPotentiometer:86 if it is assigned to an axis as
(>K:Joes-LightPot86_SET)
It should be possible to change it to a parameterized one, so that the parameter of the index can be handed over.

The RPN Script itself is defined via the RPN Code Editor.
Be Aware that after changing the Code in the RPN editor it aint directly available within the Events Assignments.