FOR /F "tokens=2 skip=2" %%i IN ('TASKLIST /FI ^"IMAGENAME eq excel.exe^" /FI ^"CPUTIME gt 00:15:00^"') DO taskkill /F /PID %%i
FOR /F "tokens=2 skip=2" %%i IN ('TASKLIST /FI ^"IMAGENAME eq excel.exe^" /FI ^"CPUTIME gt 00:15:00^"') DO taskkill /F /PID %%i