What you are doing in powershell is more or less the same as using a compliance job. you have a list of conditions and you see if your target meets those conditions. so either compliance on the ‘parts’ directly that you need to check or an extended object that runs your powershell and spits out a yes/no and then a compliance job on that.
Thanks Bill! Certainly makes sense on the Yes/No thing.