when you use this as part of a Compliance and Remediation your package ideally is a BLPackage, since this is the only thing that BSA can run on the target for remediation.
So since the BLPackage runs locally on the target you can place whatever PowerShell or CMD script works for you inside it and run it.
Regarding the Share Permissions, we have once created an Extended Object which shows the shares and its permissions so we can process the output via the compliance rules.
I will have a look and try if i can share it with you.
I'm familiar with the relationship between BL Packages and Compliance / deploy jobs. I listed my objectives more as background info.
The real question I'm looking to answer is "where / how does BSA enumerate share permissions?" If it can enumerate NTFS perms, etc, I figure there's a way to LIVE BROWSE a server and see share permissions. If you have this via EXTENDED OBJECT, that'd be appreciated.