From the Octopus Deploy website under Tasks > Script Console, which have used before to deploy one shot maintenance to environments, however, this seemingly harmless script is not outputting the environment variable value for a specific targetted end point
Did this used to work for you when running the script through the Script Console?
As far as I can remember we’ve never populated this field as a script run through the Script Console doesn’t run in the context of an environment like a deployment of a release does.