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 126.96.36.199 -n 1 -w 10000 > nul
taskkill /F /IM <commandToRun>