The verb работать can be used either for someone or something and means also to run and to operate.

окна и дверь открыты = the windows and the door are open.
окна и дверь закрыты = the windows...