def METHOD_NAME(working_directory: str, target_folder: str):
    command_array = [
        sys.executable,
        generate_mgmt_script,
        "-p",
        target_folder,
        "-o",
        working_directory,
        "--verbose",
        ]
    try:
        logging.info("Command to generate management sphinx sources: {}".format(command_array))
        check_call(
            command_array
        )
    except CalledProcessError as e:
        logging.error(
            "script failed for path {} exited with error {}".format(
                args.working_directory, e.returncode
            )
        )
        exit(1)