The script is available for download from http://gallery.technet.microsoft.com/How-to-list-all-users-in-a-a3246a2e. You can also use Microsoft Script Browser for Windows PowerShell ISE to download the sample with one button click from within your scripting environment.
This Script shows how to get all users in a group in SharePoint.
Sometime users want to know how many users in a specified group. This script is to achieve that goal.
You can find more All-In-One Script Framework script samples at https://aka.ms/onescriptingallery