RunUAT looking for project in the wrong place

My code in python is:

        batch_file_path = unreal.Paths.root_dir() + "Engine/Build/BatchFiles/RunUAT.bat "
        project_path = unreal.Paths.project_dir()
        output_directory = unreal.Paths.project_dir()

        subprocess.run([
             batch_file_path,
            'BuildCookRun',
            f'-project="{project_path}"',
            '-noP4',
            '-platform=Linux',
            '-clientconfig=Development',
            '-serverconfig=Development',
            '-cook',
            '-allmaps',
            '-build',
            '-stage',
            '-pak',
            '-archive',
            f'-archivedirectory="{output_directory}"'
        ])

project_dir is ..\..\..\..\MyProject

And when I run this code I get the error:

Could not find project C:\Users\employee\UnrealEngine\..\..\..\..\MyProject

RunUAT is appending the unreal engine directory to the project path that I provided. But I don’t want it to do this. I just want it to use project_dir by itself.