def METHOD_NAME(params: list[RenderParams]):
    python = sys.executable
    if not python:
        python = "python3"
    python = sh.Command(python)
    procs = []
    for par in params:
        print("Adding header for", par.title)
        print("---", file=par.fh)
        print("title:", par.title, file=par.fh)
        print("---", file=par.fh)
        print(file=par.fh)
        print("Rendering", par.title)
        procs.append(
            python(
                "-m",
                "pydoc_markdown.main",
                *par.args,
                "--render-toc",
                _out=print_line(par),
                _bg=True,
                _done=render_done(par),
            )
        )
    for handle in procs:
        with CommandErrorWrapper(procs):
            handle.wait(timeout=60)