View Tasks in Windows with port ID
To view the processes,
Tasklist /fo table
To kill a process by its name, type the command:
Taskkill /IM "process name" /F
To kill a process by its PID, type the command:
Taskkill /F /PID pid_number
example: to kill process with port id (PID)
Taskkill /PID 7980 /F