title: Error running PackageWeb Powershell script from TeamCity build
body: <p>I'm getting an error I'm baffled by when running a Powershell script in a TeamCity build. The script comes from a Nuget package called <a href="http://www.nuget.org/packages/PackageWeb/" rel="nofollow">PackageWeb</a>. The script is meant to take a MSDeploy package and deploy it to an instance of IIS running on a remote machine. The script can be read <a href="https://github.com/sayedihashimi/package-web/blob/master/src/Publish-Interactive.ps1" rel="nofollow">here</a>. The error I get is the following:</p>
  
  <pre><code>"C:\Program Files (x86)\IIS\Microsoft Web Deploy V3\msdeploy.exe" -verb:sync
   -source:archiveDir="C:\TeamCity\buildAgent\temp\buildTmp\App Name.csproj_zip" -
  dest:auto,includeAcls='False',
  ComputerName='mycomputer',Username=hurry,Password=up,AuthType='NTML' 
  -disableLink:AppPoolExtension 
  -disableLink:ContentExtension -disableLink:CertificateExtension 
  -setParamFile:"C:\TeamCity\buildAgent\temp\buildTmp\App Name.csproj_zip\SetParameters.xml" -whatif -
  skip:objectName=dirPath,absolutePath="_Deploy_" -
  skip:objectName=filePath,absolutePath=web\..*\.config -skip:objectName=dirPath,absolutePath=_Package 
  -skip:objectName=filePath,absolutePath=.*\.wpp\.targets$ -allowUntrusted -enableRule:DoNotDelete 
  
  The term 'C:\TeamCity\buildAgent\temp\buildTmp\App' is not recognized as the name 
  of a cmdlet, function, script file, or operable program. 
  Check the spelling of the name, or if a path was included, 
  verify that the path is correct and try again.
  </code></pre>
  
  <p>The second line has to be the culprit, and the space between words in "App Name" is probably at fault, but I haven't found a way to escape this properly. The "App Name" is gotten from the zip file name of the msdeploy package (it's called "App Name.csproj_zip").</p>
  
  <p>Any idea why Powershell run from TeamCity doesn't allow for a space in the path to msdeploy???</p>