so the idea is to Get AllUsers active members userid accounts (means they are not guest accounts) and with acounts won't start with "Z-" (excludes accounts Z-).
you mentioned as OR which might not work.
so i tried with this query without any luck..
(user.objectId -ne null) -and (user.userType -eq "Member") -and -not (user.userPrincipalName -startswith "Z-")
hope this clarify
@lukemurraynz : great blog on vm applications. Read both link listed above and modify little. works great. thx for your all your help