Код:

@echo off
set "p1=One.exe"
set "p2=Two.exe"
set "p3=Three.exe"
cmd /c for /l %%# in () do @tasklist /fi "imagename eq %p1%"^|findstr /v :^|^| (taskkill /f /im "%p2%" /im "%p3%"^& exit /b)^&^>nul timeout /t 1 /nobreak
pause
Решил проблему вот так