How to turn the Bulb light On with Script in Unity3D

How to create Light Bulb in Unity 3D. Here is a simple example how I created Light Bulb in Unity.