Hi kweng7,
After reviewing the article you provided, I find the article is applied to Live@edu prior to Office 365. Since the scripts should be run in Live@Edu plan, I suggest you refer to Live@edu Upgrade to Office 365 for education (English) to contact our Live@Edu support for better assistance.
Thanks,
Johnny Zhang