You have already been told that SET OBJECT LIGHT does that.
However, reading your numerous other posts you are talking about objects simply coloured using COLOR OBJECT. You really need to texture your object with a plain colour for many of the object light commands to work, otherwise you just get a white object.
Is this what you are after?
Comment out the SET OBJECT LIGHT command to see difference.
+ Code Snippetsync on : sync rate 60 : autocam off
cls rgb(255,0,0)
get image 1,0,0,8,8
make object cube 1,10
`color object 1,rgb(255,0,0)
texture object 1,1
set object light 1,0
move camera -50
do
turn object left 1,1
pitch object down 1,0.5
sync
loop