i am tired right now so i'm not sure if this is what ron said but just make a seperate script for the "actionscript" that calls the script that needs arguments, of couse, this can be confusing for others if you are planning on releasing the action (not with a mission) but if its going to be used just in your mission it will work fine
ex.:
actionid=unit addaction["actiontext","redirect.sqs"]
Redirect.sqs
[arguments] exec "actionscript.sqs"