$ErrorActionPreference='Stop' $root=Split-Path -Parent $PSScriptRoot Set-Location $root $config=Get-Content config.json -Raw | ConvertFrom-Json $uri=$config.avatar.apiUrl Write-Host "Enviando accion de prueba a VNyan: $uri" $body=@{action=$config.avatar.actions.greet;payload=@{user='PruebaLocal'}}|ConvertTo-Json -Depth 5 Invoke-RestMethod -Method Post -Uri $uri -Body $body -ContentType 'application/json' -TimeoutSec 3 | Out-Null Write-Host 'La peticion HTTP llego al servidor; revisa si el grafo de VNyan reacciono.' -ForegroundColor Green