Comments: ** Comment from web user: ESchyberg **
Hi Folks,
had a recent client try to use this snippet for Project Server 2013.
a few notes on the code - not quite right actually.
first off, the ProjectSite#0 is used as the PWA Template - the correct template = PWA#0
second the "database" that is created would appear to be attached to the service app, but Project Server Service app, has no database. instead each PWA Instance has a database. so names and logic need to be updated.
also, most typically (but not 100% required) is that a PWA is normally deployed to its own SharePoint Web Application. which should use the host header value - no AAM for Project Server (best practice IMO).
finally, there are many additional steps that are required to get a PWA instance fully configured.
not the least of which starts with a setting for the Project Permission Mode - again, typically in ProjectServer mode - rather than the default SharePoint mode.
then comes BI reporting, etc...
so the script does a good job getting the binaries installed, but falls down a bit on the creation of the PWA instance.
and thanks for including Project Server in this version (or whenever it was added).