If a shul has a goy as an employee, who as part of his duties, has him come in on Shabbos and Yom Tov to turn lights off and on for the shul is this permitted?
Answer:
No, telling a non Jew to do work on Shabbos, even if told before Shabbos, violates the prohibition of Amira Lakum, having a non Jew do prohibited melacha on Shabbos.