Power down a cinema processor with a script

You have not formatted your post correctly so it is difficult to see if you have done this correctly.

But I doubt it. Pretty sure this isn’t correct:

As you have copied a completely unrelated template.

Nor is this (from what you said earlier):

Look in Developer Tools → States, do you see a switch called switch.projector (you did not change the name as I suggested) in the list?

If so, what is its state?

If not, look in Settings → System → Logs. Any errors related to your switch?