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

PowerShell Code

Note: This code requires the Microsoft Graph SDK for PowerShell.