python ile bu işlemi yapabilirsiniz

import subprocess
import time

def restart_bat_file(bat_file_path):
    while True:
        print(f"Starting {bat_file_path}")
        process = subprocess.Popen(bat_file_path, shell=True)
        process.wait()
        print(f"{bat_file_path}")
        time.sleep(1)

if __name__ == "__main__":
    bat_file_path = "baslat.bat" 
    restart_bat_file(bat_file_path)