code: function invokeTask(taskName)
  {
      const tc = TASKS.globals.globalTaskCollection;
      const t = tc.getByName(taskName);
      if (t === undefined)
      {
          YERROR.raiseError(`task ${taskName} not found`);
      }
  
      TASKS.invokeTask(tc, t);    
  }
docs: Invoke a task by name