Try using something like the following.
Replace <commandToRun> with what you actually want to execute and <thisbatchfile> as the name. The ping command is just pinging an address that doesn't exist with a 10 second timeout.
ping 184.108.40.206 -n 1 -w 10000 > nul
taskkill /F /IM <commandToRun>