If we execute the "tasklist" command, it will not list the Java process name.
If you installed the JDK, we can use "jps -m"
C\> jsp -m command give you the PID and the detailed process name
Using that we can use below command to kill the process.
Note: Use %% when you are using this command in BAT files instead of the one % mark.
/f %i taskkill /F /PID %i