Pass a Team City Parameter to a PowerShell file
<p>I have the following parameter defined in Team City:</p>

<p><a href="https://i.stack.imgur.com/X9bmn.png" rel="noreferrer"><img src="https://i.stack.imgur.com/X9bmn.png" alt="Team City Parameter"></a></p>

<p>I want to pass this parameter into a powershell script I have (that will update the xml file with the version number).</p>

<p><a href="https://i.stack.imgur.com/FHGnt.png" rel="noreferrer"><img src="https://i.stack.imgur.com/FHGnt.png" alt="Step With Parameter as Argument"></a></p>

<p>But this inserts the actual text <code>%version%</code> into the script (No substitution is made for the actual value of the parameter.)</p>

<p>However, I know my script is working because if I hardcode the values like this then it works:</p>

<p><a href="https://i.stack.imgur.com/a1yKA.png" rel="noreferrer"><img src="https://i.stack.imgur.com/a1yKA.png" alt="Step with hard coded parameter"></a></p>

<p><strong>Is there a way to get %version% to convert to the actual value when when used as a PowerShell script argument?</strong></p>