I've been trying to get access to PE Health Status (e.g. Failed, Warning, etc) via CmdLets or REST API with no much luck.
Best answer by dlira
You can use APIV2 to do that:
If you need examples or a guide on how to obtain the data or how to connect, visit my github.