I've used the script located here: How to replicate AD DS OU structure to Configuration Manager Configuration Manager PowerShell SDK

That has created a folder structure within the SCCM device collections to match my AD structure, now what i'd REALLY like is a script that could automatically create collections and generate the queries in the exact same way, so that each collection is named the same, put into the right folder and queries the correct AD folder.

Probably a hell of a long shot for something like that do be around and do it all for me but does anyone know of such a thing?