Passing variables to an external AppleScript

I have an embedded script that I use on multiple folders which passes a string identified using a Match condition. The script acts on the file and the variable using "theFile" and "item 1 of inputAttributes" respectively.
To simplify maintenance I would like to use an external thread but cannot figure out how the access the two pieces of data.
I have tried referring to them as "item n of input" but that doesn't work.
To simplify maintenance I would like to use an external thread but cannot figure out how the access the two pieces of data.
I have tried referring to them as "item n of input" but that doesn't work.