Retrieving all Azure AD Application Registrations with a credential using the Microsoft Graph SDK for PowerShell and the Get-MgApplication cmdlet.

PowerShell Example

Note: This code requires Microsoft Graph PowerShell.