I tried this out in release stage powershell task, but i am unable to refer to dynamic variable value in a gate parameter for that stage using the write-host command. I tried adding the variable in task variable section and then tried to refer to with all these variations but I never see the value $(varname) $($env.varname) $(VARNAME) . Any suggestions?