Hi Gerard,
To source the script and run it within Maya, first do:
import sys
sys.path.append('c:/where/your/script/is/at')
import yourScriptName
And optionally/preferably execute a function inside the module, so it doesn't get run just because you have sourced it (above):
yourScriptName.functionName()
Check out python's "optparse" for a clean way of dealing with arguments. But that's not really applicable when you execute the script within Maya. If executed like described above, you can just
supply arguments to the function:
yourScriptName.functionName('hello', 5, 'blue')