Oh well - process management under windows is a kind of pain. I especially had to deal with my maven/https://quarkus.io/[Quarkus]/https://www.jetbrains.com/idea/[IntelliJ] combination:
Sometimes I didn’t kill all properly and the port was blocked etc, you probably know the drill.
wmic to the rescue! With it, you can basically use SQL-ish syntax to do funny things like killing processes:
$ wmic process where "commandline like '%%projectname%%jar%%'" delete
Just put this inside of a batch file and tell intellij to call it. Et voila!