How to make script active for any gameObject?

setting the active property of the script to true doesn’t work when done from within the code. But the same thing can be done from the unity’s components view.

How can I make script active for any gameObject :?:

Enabled, not active. Active is only for GameObjects; enabled is for components.

–Eric