This looks to be an issue with ASPI and your language.
This is the line that fails:
If you need to solve this quickly you can comment out all of the code in "Function AddResourcesLink" as all this does is add some quick links to Search and User Profile Service. It's not something that's required.
This is the line that fails:
$item = $centraladmin.RootWeb.Lists["Resources"].Items | Where { $_["URL"] -match ".*, $title" }
ASPI is expecting a List with the Title "Resources" and its not able to find it.. What language of SharePoint are you installing?If you need to solve this quickly you can comment out all of the code in "Function AddResourcesLink" as all this does is add some quick links to Search and User Profile Service. It's not something that's required.