A Script to control a lamp