You *CAN* just specify the command line arguments via the Task Scheduler. Did you not know that?
And even if you couldn't, you could instead create a ".bat" file that contained something like
TestExecute zambonis 337 Z$4
and then schedule the ".bat" file.
You need to explain why you think you need JS to get involved here.