# Abre el visor en el navegador por defecto (Windows). $ErrorActionPreference = "Stop" Set-Location -Path $PSScriptRoot $f = if ($args[0] -eq "informe") { "out\informe.html" } else { "out\visor.html" } if (-not (Test-Path $f)) { Write-Host "No encuentro $f" -ForegroundColor Red; exit 1 } Start-Process (Resolve-Path $f)