Hi Harkamal
I have had a quick look at this, the attached a PowerShell and accompanying functions will setup an Enterprise group but I have not got as far as setting a Enterprise Admin or adding a Compute Resource to the Enterprise group, hopefully this is enough to get you started though