Modified check for group member ps script