Yes there is.
You would need to cycle through every object on the island, check if it was a streetlamp and then turn it off if it was.
The last part is very easy, the middle part is quite easy (typeOf command I think) and the first part is hard.
object 1 is a string, right? And it is a string that has two parts, "object" and "1". Making a 1 on its own increment is easy, and it should be possible to add two strings, add a third string for the rest of the code in the line you desire and then use a call command to execute the string you have cobbled together.
Probably.