$ErrorActionPreference = "Stop" $Root = Resolve-Path (Join-Path $PSScriptRoot "..\..") Set-Location $Root $Stamp = Get-Date -Format "yyyyMMdd_HHmmss" $OutDir = Join-Path $Root "artifacts\gui_dashboard_ui_review_$Stamp" $Index = python tools\gui\export_dashboard_ui_review.py --out $OutDir if ($LASTEXITCODE -ne 0) { throw "UI review export failed" } Write-Host "UI review exported:" $Index Start-Process $Index