It is obvious that the grammar you entered is wrong. Check your order. The taskkill command is used as follows:
1, use taskkill command.
1.taskkill /im process name
Example: use the taskkill/im tomcat7.exe command to close tomcat.
2.taskkill /pid[ process code] -t (end process) -f (forcibly end process and all subprocesses)
Note: There are two ways to check the PID code of the process:
1. Use the tasklist command on the command line to find out the PID code of the process.
2. Check the PID project in the view option of Task Manager.