@echo off
powershell -NoProfile -ExecutionPolicy Bypass -Command "$p=4173; try { Get-NetTCPConnection -LocalPort $p -State Listen -ErrorAction Stop | ForEach-Object { Stop-Process -Id $_.OwningProcess -Force -ErrorAction SilentlyContinue } } catch { if (Test-Path '.shire-forge.pid') { $id=(Get-Content '.shire-forge.pid' -Raw).Trim(); if ($id -match '^\d+$') { Stop-Process -Id ([int]$id) -Force -ErrorAction SilentlyContinue } } }; Remove-Item '.shire-forge.pid' -Force -ErrorAction SilentlyContinue"
echo SHIRE Marketing Forge stopped.
pause
