Using PowerShell to collect macOS recovery pin code after remove lock

Hey,
I’m trying to find the best way to fetch the remote lock password from Microsoft intune.
I saw Microsoft published intune, but, can’t find anything that looks promising.
any thought?

Thanks,
Gal