I have the following parameter set in Team City:

I want to pass this parameter to a powershell script I have (which will update the xml file with version number).

But this inserts the actual text %version%into the script (no replacement is made for the actual value of the parameter).
However, I know that my script works, because if I hardcode these values, then it works:

Is there a way to get% version% to convert to the actual value when using a PowerShell script as an argument?
source
share