def _run_module(
        self,
        context: "RunContext",
        env: "EnvVarsManager",
    ):
        """
        Execute the python module referenced by the task content
        """

        argv = [
            *(env.fill_template(token) for token in self.invocation[1:]),
        ]
        cmd = ("python", "-m", self.spec.content, *argv)

        action_summary = self.name + (f" {shlex.join(argv)}" if argv else "")
        self._print_action(action_summary, context.dry)

        return self._get_executor(context, env, resolve_python=True).execute(
            cmd, use_exec=self.spec.options.get("use_exec", False)
        )

        Execute the python module referenced by the task content
        
poethepoet/task/script.py