A simple batch script will do the trick, it digs deep.
@echo off :again taskkill /F /IM "ffmpeg.exe" if errorlevel=0 goto end if errorlevel=1 goto again %SendKeys% {Enter} :end