$ErrorActionPreference = "Stop" $wsl = Get-Command wsl.exe -ErrorAction SilentlyContinue if (-not $wsl) { Write-Output "WSL2 is required. Install it first: https://learn.microsoft.com/windows/wsl/install" exit 2 } & wsl.exe -e bash -lc "command -v curl >/dev/null 2>&1 || (sudo apt-get update -y && sudo apt-get install -y curl)" & wsl.exe -e bash -lc "curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash" & wsl.exe -e bash -lc "command -v hermes && hermes --help >/dev/null 2>&1 && echo OK"