(Information and examples taken from the DroidScript documentation)
The SetScreenBrightness method sets the screen brightness for this App with a decimal value level between 0 and 1.
app.SetScreenBrightness( brightness );
function OnStart() { app.SetScreenBrightness( 0.25 ); }