RunScript parameters

I have a working add-on script…But to make it do as I want I have to set properties before RunScript…..

I notice in other add-on people add params/variables to the RunScript …. the skinning manaul states

all extra parameters are passed to the script as arguments and can be accessed by python using sys.argv

What would I need to do to in my add-on to clean it up to just RunScript so I don’t have to set properties before.

Is an example I could look at and follow to try to figure out what I need to change?

Thanks again for any advice