The topic of this metaphor is that because of what the Spirit did, Zechariah had special powers. Possible images are 1) the Spirit came over or came on or covered Zechariah like a garment, thus giving Zechariah special powers. Alternate translation: "came over Zechariah" or "took control of Zechariah" Or 2) the Spirit covered himself with Zechariah and so acted through him. (See: [[rc://en/ta/man/jit/figs-metaphor]])
Zechariah asked this rhetorical question to rebuke the people. It can be translated as a statement. Alternate translation: "You are transgressing the commandments of Yahweh, so that is why you cannot prosper." (See: [[rc://en/ta/man/jit/figs-rquestion]])