During the pendency of any proceeding upon a petition for a writ of mandamus or writ of prohibition, the court having jurisdiction, or the judge in vacation, may make such temporary orders as appear expedient and proper to prevent injury, waste, or damage of whatsoever kind.