Hi Peter,
Since our forum doesn’t focus on the Script, we can only provide limited assistance with it.
Based on your description, you can check if the “AccountSkuID” has been set up correctly.
To do this, you can refer to the threads below:
http://community.office365.com/en-us/forums/148/t/17328.aspx
http://community.office365.com/en-us/forums/148/t/73729.aspx
In addition, you can also post this question in our Script Center forum:
Script Center: http://social.technet.microsoft.com/Forums/en-US/category/scripting
Thanks,
Wilfred Ying