How to get the TeamCity working dir in a powershell build step
<p>In my TeamCity project I have a PowerShell build step, I need to get the current working dir of team city in the script. I tried this code to get it from the environment variables, however, the environment variable is apparently <code>null</code>:</p>

<pre><code>"Working Dir: " + $env:teamcity_build_workingDir
</code></pre>

<p>How can I access the TeamCity variables, or how can I get the current working path of the TeamCity project?</p>