Hello,
we have been told by Vmware support that in Appvolume version 2.18.0 there is special handling for environment variables in a certain callback function, but it is not present in 2.18.2 onwards.
The recommendation is to downgrade the agent to 2.18.0 :smileysilly: and deploy a test pool to see if the issue with environment variables occurs.
If it doesn't occur, then I would suggest running this build of agent in your environment until 2.18.5 is released. This should also contain fixes of the 2.18.4 build.
This build - 2.18.5 is do for release at the end of July, but this date could change if engineering need to push the date back, if they need to add other fixes to the build, etc..