@screnshaw
task.MapReduceScriptTask seems to have:
MapReduceScriptTask.params - Object that represents key/value pairs that override static script parameter field values on the script deployment record.
presumably define parameters on the deployment of the MR then override them when you invoke the MR