Sure. I wanted the task options to be available inside the exec function, so I added them to the arguments sent to exec when the task is run. Perhaps it would make more sense just to define exec inside wrapCommand so that it shares scope with the task being run?