Tool to control lamp brightness? Like, how dense a shadow is, and how light the light is?

Is there any tool, or script to adjust the power of the lamp?

Thanks.

Isn’t there a “Brightness” function at a lamp?

Light has that feature, but the Lamp doesn’t.