If the program know the name lookup by name
For example micro-channel:
> tasklist | findstr "WeChat" // support fuzzy queries
WeChat.exe 15172 Console 1 101,996 K
WeChatWeb.exe 14900 Console 1 24,992 K
WeChatApp.exe 5368 Console 1 107,236 K
> taskkill / F / pid 15172
Success: it has terminated the process with PID 15172 of.
If you want to see which port is occupied by what procedures
For example, port 80 is occupied by unknown program
>netstat -ano | findstr "80"
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 4
C:\Users\delverloper-001>tasklist | findstr "4"
chrome.exe 3896 Console 1 76,664 K
to kill off