. (Join-Path $PSScriptRoot 'common.ps1') $server = Get-LocalServerProcess if ($server) { Stop-Process -Id $server.ProcessId Write-Output "Stopped local server PID $($server.ProcessId)." } else { Write-Output 'The local server is not running.' } $pidFile = Join-Path $runtimePath 'server.pid' if (Test-Path -LiteralPath $pidFile) { Remove-Item -LiteralPath $pidFile }