How to manage (pre-/post-) build settings using scripts modifying env settings?

Thank you, I believe that I do understand. It seems that the .AddPostAction is similar to a function pointer or delegate that is added to a list for later processing. I will give it a try.