param(
  [string]$Config = "D:\projects\skills\vip-report\config.yaml",
  [string]$ReportMonth = "",
  [int]$ReportYear = 0
)

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

$args = @(
  "$root\scripts\sync_cep_live_session_assets.py",
  "--config", $Config
)
if ($ReportMonth -ne "") {
  $args += @("--report-month", $ReportMonth)
}
if ($ReportYear -gt 0) {
  $args += @("--report-year", [string]$ReportYear)
}

python @args

