changing build settings from a script (UWP)

i want to enable (copy reference) for the uwp but from a script i run on CI

#if UNITY_WSA
UnityEditor.UWP.UserBuildSettings.copyReferences = true;
#endif

thank you, it worked