Hi,
I'm trying to do the same as Alan but for VMs, I tried the same solution but it didn't work for me:
When I execute the second command:
$complianceStatus.NotCompliantPatches
it doesn't bring any answer, but if I used just the variable $complianceStatus it respond with all the detailed information.
It's there a reason because the command doesn't show just one field of the detailed information keep on the variable?