Useful PnP.PowerShell Code Snippets
Find a List title:
# Connect to SharePoint Online
Connect-PnPOnline -Url <URL of the SharePoint site> -Credentials (Get-Credential)
# Get a list of all lists in the SharePoint site
$Lists = Get-PnPList
# Find the list that contains the folder
$List = $Lists | Where-Object { $_.RootFolder.ServerRelativeUrl -eq "/sites/TestSite/Shared Documents" }
# Display the title of the list
$List.Title