Nathan I appreciate it but the ICurrentEnvironment.ForReflectionAndRefraction property (accessed through RhinoDoc.ActiveDoc) only sets the environment but does not check the box, “use custom environments for reflections” so the environment is not applied.
Anyway it seems that by setting it through scripting as clement says it is activated, so the workaround is already working for me.