$ErrorActionPreference = "Stop" $wsl = Get-Command wsl.exe -ErrorAction SilentlyContinue if (-not $wsl) { Write-Output "WSL2 is required." exit 2 } & wsl.exe -e bash -lc "command -v hermes >/dev/null 2>&1 || exit 3; nohup hermes gateway start >/tmp/hermes-gateway.log 2>&1