How to find out the TeamID of installed apps in macOS High Sierra/Mojave Can someone tell me, how can I get the TeamID &amp; bundleID of all installed apps in macOS.

I know how to get the bundleID of an app, I want both TeamID and bundleID of all the installed app.

Is there any shell script/command which can be used for this?
See this site and this one for some background. 

If you’re trying to find out this info to create profiles for managed Macs to handle new security restrictions when installing kernel extensions, there are numerous discussions on JAMF and Meraki user and support fora.