Functions/Public/Start-MicrosoftStoreUpdate.ps1

function Start-MicrosoftStoreUpdate {
    # Same as click on the button "Get Updates" of the Microsoft Store.
    Get-CimInstance -Namespace "Root\cimv2\mdm\dmmap" -ClassName "MDM_EnterpriseModernAppManagement_AppManagement01" | 
    Invoke-CimMethod -MethodName UpdateScanMethod
}