How Can I Change General Light Settings With Script

65039-new1.png

I want to change Ambient Source Color>Ambient Color and Ambient Intensity with script i have day and night script i now where the code will add but i don’t know how to. Can someone help with this?? Code must be type of CS. Thanks.

Here are the references: