$path = "\\va01fsx01.dbia.com\applications\Programs\microsoft-office" If ( Test-Path "${path}\setup.exe") { Start-Process "${path}\setup.exe" -ArgumentList "/configure ${path}\o365businessretail.xml" -Wait }