I may have found something. I was in the process of breaking down my script as you suggested.

I received the following error:

ERROR : unknown command [WriteLog2]!
Script: W:\CreateAdGroup.udf
Line : 60

I do not have the WriteLog2.udf. Initial searching of the UDF did not yield any results. I will search for this later tonight. Maybe my initial script will work. I just don't know why it could create a single group .... [Confused]