Smart Deploy Powershell Script