$bp = Join-Path $PSScriptRoot "backend" $localPython = Join-Path $bp ".venv\Scripts\python.exe" $sharedPython = Join-Path (Split-Path $PSScriptRoot -Parent) "ocr-fpr-phonex-team-main\backend\.venv\Scripts\python.exe" $python = if (Test-Path -LiteralPath $localPython) { $localPython } elseif (Test-Path -LiteralPath $sharedPython) { $sharedPython } else { "python" } Start-Process -FilePath $python -ArgumentList "run.py" -WorkingDirectory $bp -WindowStyle Hidden