I would say closed. If you have ventilation at the roof that should be good.
You don't want too much moisture (and the hens breathing will create moisture) with the widows closed
But you don't want dust/shavings blowing around either.
I don't suggest using the lamp if you are prone to power...