private/review/admincenter/settings/Invoke-ReviewTenantCustomerLockEnabled.ps1

function Invoke-ReviewTenantCustomerLockEnabled
{
    <#
    .SYNOPSIS
        Review that customer lock is enabled.
    .DESCRIPTION
        Returns review object.
    .EXAMPLE
        Invoke-ReviewTenantCustomerLockEnabled;
    #>


    [cmdletbinding()]
    param
    (
    )

    BEGIN
    {
        # Write progress.
        Write-Progress -Activity $MyInvocation.MyCommand -Status 'Running' -CurrentOperation $MyInvocation.MyCommand.Name -PercentComplete -1 -SecondsRemaining -1;
    }
    PROCESS
    {
        # Get settings.
        $settings = Get-OrganizationConfig;
    }
    END
    {
        # Bool for review flag.
        [bool]$reviewFlag = $false;

        # If the review flag should be set.
        if ($false -eq $settings.CustomerLockBoxEnabled)
        {
            # Should be reviewed.
            $reviewFlag = $true;
        }

        # Create new review object to return.
        [Review]$review = [Review]::new();

        # Add to object.
        $review.Id = 'f4cf24ca-cd8f-4ded-bfe0-6f45f3bcfed0';
        $review.Category = 'Microsoft 365 Admin Center';
        $review.Subcategory = 'Settings';
        $review.Title = "Ensure the customer lockbox feature is enabled";
        $review.Data = [PSCustomObject]@{
            Enabled = $settings.CustomerLockBoxEnabled;
        };
        $review.Review = $reviewFlag;

        # Print result.
        $review.PrintResult();

        # Return object.
        return $review;
    }
}