@promax150
Just curious, why do you want to check for AD user group membership thru' execution scripts if you are using streaming. Streaming infrastructure gives you an option to configure with Active Directory and use your AD users groups to provision application appropriately. If the end point is configured to use windows login, then only the provisioned apps are visible to the currently logged on user.
If you are checking membership for some other reason, I would appreciate if you could share it.
Thanks.