The final judgment in any such action or proceeding shall either dismiss the action or proceeding, or direct that a writ of mandamus, an injunction or other appropriate process shall issue as prayed for in the petition, or in such modified or other form as the court may determine will afford appropriate relief.
RSA 374:44
1911, 164:16. PL 240 :42. RL 289:42.