Public/Intune/Apps/Get-MemMobileAppData.ps1
function Get-MemMobileAppData { [CmdletBinding()] param ( [Parameter()] $AppId ) if ([datetime]::UtcNow -ge $Script:TimeToRefresh) { Connect-PoshGraphRefresh } $RestSplat = @{ Uri = 'https://graph.microsoft.com/beta/deviceAppManagement/mobileApps/{0}' -f $AppId Headers = @{ "Authorization" = "Bearer $Token" } Method = 'Get' } Invoke-RestMethod @RestSplat -Verbose:$false } |