Though technically, it seems the only change that's really needed here instead of adding any new logic is to just move the AddDeploymentSettingsAsEnvironmentVariables call to be after the `exe.EnvironmentVariables` assignments instead of before.