# Kill fs-company process only
$javaProcs = Get-Process -Name java -ErrorAction SilentlyContinue
foreach ($proc in $javaProcs) {
    $procId = $proc.Id
    $cmd = (Get-CimInstance Win32_Process -Filter "ProcessId=$procId").CommandLine
    if ($cmd -match "fs-company") {
        Write-Output "Killing fs-company PID $procId"
        Stop-Process -Id $procId -Force
    }
}
