Exit Codes for PowerShell Script

Here are explanations of the possible exit codes from the PowerShell script:
Exit Code
Explanation
0
Success.
–1
Microsoft SharePoint is not installed.
–2
Unable to find package file SASWebParts.wsp.
–3
SAS Web Parts is already installed.
–4
Installing the SAS Web Parts solution failed.
–5
The deployment of the solution failed.
–6
Cannot enable the SASWebPartsProfileList feature.
–7
Cannot enable the SASContentViewerWebPart feature.
–8
Cannot enable the SASCentralWebPart feature.
–9
Unable to encrypt the password.
–10
Unable to add a profile to the list.
–11
Unable to access the SharePoint site.
–12
Unable to start the AdminV4 service.
–13
Unable to uninstall the solution.
–14
Invalid profile ID.
–15
The profile list does not exist on the site.
–16
The solution is not installed or deployed.
–17
Invalid site URL specified.