A script that adds all workstations in a domain to a group. When used in conjunction with Create-CMGroupsInAD, you can Add this the "Default Software" group to any of the CM application groups and have it install that software on every workstation in your domain.
https://github.com/CascadeTechnologyAlliance/Create-CMGroupsInAD
https://www.anoopcnair.com/ad-group-based-sccm-collection/
This script has some portions derived from a script by Spucr posted to Spiceworks.com in 2013. https://community.spiceworks.com/scripts/show/1848-sync-ad-group-members-with-ou-users