Translation of "Kommandantur" in English

Jahrhundert diente das Rastatter Schloss als Kommandantur der Festung Rastatt.
During the 19th century the castle was used as headquarters.
Wikipedia v1.0

Wo ist der Schalter für die Kommandantur der königlichen Mounties?
Where is the power switch to the Royal Canadian Mounted Police headquarters?
OpenSubtitles v2018

Hättet Ihr die Güte mir zu sagen, wo eure Kommandantur ist?
Sir, would you be so kind as to tell us where the headquarters is, please?
OpenSubtitles v2018