Tested it on a Project 2013 farm. Get-SPProduct -Local returns "Microsoft® Project Server 2013". The ® icon is not included in the like statement "Microsoft Project", meaning it will download SharePoint files in stead of Project files.
Propose to include -or statement with -like "Microsoft® Project".
Tested it on a Project 2013 farm. Get-SPProduct -Local returns "Microsoft® Project Server 2013". The ® icon is not included in the like statement "Microsoft Project", meaning it will download SharePoint files in stead of Project files. Propose to include -or statement with -like "Microsoft® Project".