title: Are bamboo variables automatically available as environment variables?
body: <p>I am trying to access Bamboo's variables as environment variables in my build script (PowerShell).</p>
  
  <p>For example, this works fine in TeamCity</p>
  
  <pre><code>$buildNumber = "$env:BUILD_NUMBER"
  </code></pre>
  
  <p>And I expected this to work in Bamboo</p>
  
  <pre><code>$buildNumber = "$env:bamboo_buildNumber"
  </code></pre>