@echo off
setlocal

for /f "tokens=2 delims==; " %%P in ('wmic process where "name='node.exe' and commandline like '%%src\\desktop-server.js%%'" get processid /value ^| find "="') do (
  taskkill /PID %%P /F >nul 2>nul
)

echo Printer Bridge stop command sent.
pause
exit /b 0
