You can also edit it to better fit your requirements.
The following sample Windows PowerShell script can help you get started.
You can automate some of the tasks to run the scenario. Script the Reset Office Activation scenario
For complete details about how to run the Enterprise version of the Assistant, see Enterprise version of Microsoft Support and Recovery Assistant.