title: Check a file into TFS using Powershell
body: <p>As part of my continuous integration build I am creating an SQL script.  This SQL script has to be checked back in to TFS after it is generated.  I'm using the TFS Powertools in Powershell.</p>
  
  <p>The code I used on my machine was:</p>
  
  <pre><code>Add-TfsPendingChange -Add -Item $filename | New-TfsChangeSet
  </code></pre>
  
  <p>This worked fine on my dev box because the folder I was in is mapped to a TFS workspace.  When I move it to my build server it no longer works because TeamCity doens't map it's checkouts to a workspace it just pulls the files down.</p>
  
  <p>How do I check files into a specific folder in TFS without being in a mapped workspace?  Is that even possible?</p>