Hi Alan.
I am sorry, but I pointed you in the wrong direction. I thought, slstat will print the pid as well. My fault !
Once again,.... never ever suggest something, without taking a quick look before.
Hopefully the following approach, will fit better. from within windows cmd , do a
"wmic process get Caption,CommandLine,Processid, | findstr domsrvr"
Thanks to : https://www.winhelponline.com/xp/listproc.htm !!
Best Regards
………..Michael