@echo off
:loop
start yourtarget.exe ...
timeout /t 1200 >null
taskkill /f /im yourtarget.exe >nul
goto loop
This will restart your program every 20 minutes.
I think I will elaborate on what it does and how you can edit it.
The key part is the "timeout" function witch is standard EXE in system32. The 1200 is the seconds. By changing that it will change the amount of seconds to wait before killing the process and starting it back up again.