Added Error Checking so that Errors are exposable to Orchestrator in Get-PendingReboot.ps1