OK, great! I've debated moving the SetPropertiesFromEnvironmentSettings step very early in the process and then internally restarting the script using the MSBuild task, which, in theory, should make this "just work" without the extra complication. Haven't had time to try it though.
Thanks,
Tom
Thanks,
Tom