$output = .\EdFi.Admin.LearningStandards.CLI.exe changes --ab-connect-id demo --ab-connect-key "12345678910" --ed-fi-url "https://api.ed-fi.org/v2.6.0/api/" --ed-fi-key "RvcohKz9zHI4" --ed-fi-secret "E1iEFusaNf81xzCxwHfbolkC" --ed-fi-version 2 --ed-fi-school-year 2020 --output json --unattended
if($LASTEXITCODE -le 0) {
# Skip validation outputs, then convert the payload.
$json = $output[2..500] | ConvertFrom-Json
if ($json.changesAvailableInformation.available -eq $true) {
# Notify someone that changes are present and then run sync?
Write-Output "Changes Available."
}
} else {
throw $output
}