def METHOD_NAME(self, task, script, external_methods=None):
    """Execute the script, within the context of the specified task."""
    try:
        return self._execute(script, task.data, external_methods or {})
    except Exception as err:
        wte = self.create_task_exec_exception(task, script, err)
        raise wte