https://www.petervanderwoude.nl/post/show-collection-details-in-configmgr-2012-via-powershell-part-1-the-deployments/
Show Collection Details in ConfigMgr 2012 via PowerShell – Part 1: The Deployments