How can I call a task from another task (with dependencies)

Calling ‘execute()’ on tasks is not supported at all. It’s not clear what you are trying to achieve so I’m unable to offer a suggestion on how to proceed.