Welcome! Share code as fast as possible.

@echo off

for /L %%x in (1, 1, 20) do (
start cmd.exe /K "python main.py"
timeout /t 5 /nobreak >NUL
)

exit