I know that to change a parameter in a .cmd batch script, we can use: echo "##teamcity[setParameter name='paramName' value='abcdef']"
But the change takes effect only in the next build step after this has been set in the previous build step. I want to set and change a parameter within the same build step. Is it somehow possible?