I am not sure where I saw the request for macOS Catalina on a Mac with a T2 Security Chip showing Activation Lock Status, but we are using the enclosed script/EA
!/bin/bash
HISTORY
Version: 1.0
Created by HCS Technology Group on October 17, 2019
This will report the chip type in the mac computer. IE.. T1, T2
Chip="$(system_profiler SPiBridgeDataType | awk -F: '/Model Name/ {print $NF}' | sed 's/^ *//')"
This will report the Activation lock status.
activationLockStatus=$(/usr/sbin/system_profiler SPHardwareDataType | awk '/Activation Lock Status/{print $NF}')
If the chip type is T2, check to see if activation lock is enabled on the mac. If not, then exit.
if [[ $Chip != "Apple T2 Security Chip" ]]; then
    exit
    else
        echo "<result>$activationLockStatus</result>"
fi
