The commands tasklist and taskkill are the equivalent of using the GUI Task Manager. Tasklist and taskkill allow you to manage tasks.
The tasklist command displays a list of currently running processes. The running processes can be for a local computer or for a remote machine.
The taskkill command is used to terminate tasks. You can kill a task either by it’s process id (PID) or executable name. For example, TASKKILL /IM notepad.exe or TASKKILL /PID 1234 /T, where 1234 is the PID number.