You can use the Get-MgBetaReportApplicationSignInDetailedSummary cmdlet to get the "details" and the Get-MgBetaReportAzureAdApplicationSignInSummary one to get the "summary":
Get-MgBetaReportAzureAdApplicationSignInSummary -Period D30
Id AppDisplayName FailedSignInCount SuccessPercentage SuccessfulSignInCount
-- -------------- ----------------- ----------------- ---------------------
fe6aa35b-7da8-44fd-a44e-e2d4bafbdab5 Modern Workplace Tools 0 100 3
fb78d390-0c51-40cd-8e17-fdbfab77341b Microsoft Exchange REST API Based Powershell 0 100 16
ee272b19-4411-433f-8f28-5c13cb6fd407 Microsoft 365 Support Service 0 100 1