Retrieve the status of a user's group using a custom script

PERFECT SOLUTION HERE