soc/api/internal/security/apps/Grant-AppToAppEntitlement.ps1

function Grant-AppToAppEntitlement
{
    param(
        [Parameter(Mandatory)]
        [string] $ProviderAppAlias,
        [Parameter(Mandatory)]
        [string] $ConsumerAppAlias
    )

    return Invoke-Api Post "/soc/api/internal/security/apps/$ProviderAppAlias/grant/$ConsumerAppAlias"
}