def METHOD_NAME(self) -> None:
    assert self.command
    if system() == "Windows" and not Path(self.command[0]).is_file():
        binary = which(self.command[0])
        assert binary is not None, "Couldn't resolve script executable"
        self.command[0] = binary
    if self.in_taskcluster:
        LOG.info(f"Creating private logs directory '{self.log_dir}/'")
        if self.log_dir.is_dir():
            self.log_dir.chmod(0o777)
        else:
            self.log_dir.mkdir(mode=0o777)
        LOG.info(f"Redirecting stdout/stderr to {self.log_dir}/live.log")
        sys.stdout.flush()
        sys.stderr.flush()
        # redirect stdout/stderr to a log file
        # not sure if the assertions would print
        with (self.log_dir / "live.log").open("w") as log:
            if system() == "Windows":
                sys.exit(
                    call(self.command, env=self.environment, stdout=log, stderr=log)
                )
            result = os.dup2(log.fileno(), 1)
            assert result != -1, "dup2 failed: " + os.strerror(get_errno())
            result = os.dup2(log.fileno(), 2)
            assert result != -1, "dup2 failed: " + os.strerror(get_errno())
    else:
        sys.stdout.flush()
        sys.stderr.flush()
    if system() == "Windows":
        sys.exit(call(self.command, env=self.environment))
    os.execvpe(self.command[0], self.command, self.environment)