836. If the matter relates to the making by a corporation of any election to an office which is vacant by reason of such election not having taken place within the time required, or being or having been declared null, the proceedings are the same as above mentioned; and the writ commands the proper officer, or, in his or her absence, such person as is appointed by the Court or Judge, to proceed to such election, at the place and time fixed, and to do every act to be done in order to carry out such election, or show cause to the contrary.