?
Hello,
I was not able to reproduce this. Here is what I did.
Create a new PowerShell Asset...
Name: Test Script
Parameters: none
One ambient variable: MyEnvVar ==> $EnvVar
Contents : Write-Host My var is $MyEnvVar;
Create a variable on MYSERVER: $EnvVar = my server var
Create a new application with a deployment plan that has a single action (targeting MYSERVER) that calls Test Script
Output is My var is my server var, as expected
I also deleted $EnvVar from the server, and then created it on an environment the server is associated with, and it works as expected.
When I deleted $EnvVar from the environments, it produced the literal output (My var is $MyEnvVar) upon running.
So, my guess is there's a typo somewhere...
best,
Alana