Files
Pennyzo-Frontend/scripts/run-api-check.ps1

36 lines
641 B
PowerShell

# PowerShell script to run the Pennyzo API Status Checker
param (
[switch]$Verbose,
[switch]$NoReport,
[switch]$UseRealCredentials,
[switch]$Extended
)
$ScriptArgs = @()
if ($Verbose) {
$ScriptArgs += "--verbose"
}
if ($NoReport) {
$ScriptArgs += "--no-report"
}
if ($UseRealCredentials) {
$ScriptArgs += "--use-real-credentials"
}
# Determine which script to run
$ScriptPath = if ($Extended) {
"scripts\api-status-checker-extended.js"
}
else {
"scripts\api-status-checker.js"
}
# Display command that will be executed
Write-Host "Running: node $ScriptPath $ScriptArgs"
# Run the script
node $ScriptPath $ScriptArgs