I finally got around to making the power shell scripts generic enough that it works on all of my projects and should work on others too. I have published them to my GitHub account and wanted to share it with everyone in the hopes it will be found useful. https://github.com/coreyfournier/PowerShellDeployment
My specific use case is a typical .net MVC application that consists to 2 sites and one Windows Service that contains multiple services in the one exe. The three scripts assist in automating the deployment which is orchestrated by an on premise VSTS installation.
Feel free to offer any suggestions as I am not an experienced PS developer, I had and issue and searched until I found the answer and this is the result.