You are close! You do not have enough of that channel symbol |should be shielded in batch mode using a carriage ^, and that the arguments ( delimsand tokens) are not separated by the character ,. In fact, you can completely abandon dividends.
So your command will look like this:
for /f "tokens=5" %%a in ('netstat -ano ^| findstr 0.0.0.0:8080') do (taskkill /f /pid %%a)
source
share