get list of users

Get list of all users present in a site under different SharePoint Groups

All users having access to SharePoint site and belongs to which SharePoint group. Powershell script to get list of users group wise.