FOR /F "tokens=4 delims= " %%P IN ('netstat -a -n -o ^| findstr :8080') DO TaskKill.exe /PID %%P
findstr :8080
TaskKill.exe /PID <value>
%%P instead of %P
FOR /F "tokens=4 delims= " %%P IN ('netstat -a -n -o ^| findstr :8080') DO @ECHO TaskKill.exe /PID %%P
FOR /F ... %variable IN ('command') DO otherCommand %variable...
"tokens=4 delims= "