param(
    [string]$TemplatePath = "C:\Users\niuniu\Desktop\Report.pptx",
    [string]$OutputPath = "C:\workspace\cursor\output\vip-report\generated-baseline.pptx",
    [string]$ComparePath = "C:\workspace\cursor\output\vip-report\baseline-compare.json"
)

$ErrorActionPreference = "Stop"
$root = Split-Path -Parent $PSScriptRoot

python "$root\scripts\render_baseline.py" "$TemplatePath" "$OutputPath"
python "$root\scripts\compare_pptx.py" "$TemplatePath" "$OutputPath" --output "$ComparePath"

Get-Content -LiteralPath $ComparePath -Encoding UTF8
