Group Permissions in SharePoint 2013

I have SP 2013 sites. I want to read the group on user.aspx page with permission level. But I am getting error on get permission. some one help me with this.

$SiteGroups = Get-PnPGroup 
 
Write-host "Total Number of Groups Found:"$SiteGroups.Count

ForEach($Group in $SiteGroups)
{
    $GName = $Group.Title
    $GID = $Group.Id

    $Role = Get-PnPGroupPermissions -Identity $Group.Title #I am getting error here
 }