My previous answer is a quotation from the command reference, a document of inestimable value with which you should become acquainted at your earlist opportunity: there are various versions available in the Editors Depot, and this came from my personal favourite, the online version.
1. Create your streetlamp.
2. In its init field write the following:-
this switchlight "on"
3. If that doesn't work, check that you've done everything correctly.
4. If it still doesn't work, post back here with more details, in particular what kind of streetlight it is and where you got it.
And I didn't notice before, but
Welcome to the forum!