Added Manshu's changes to Deploy-Application.ps1

Added Manshu's changes to Deploy-Application.ps1 for the Legacy Wrapper
Template