When jurisdiction is, by the Constitution or this Code, or by any other statute, conferred on a Court or judicial officer, all the means necessary to carry it into effect are also given; and in the exercise of this jurisdiction, if the course of proceeding be not specifically pointed out by this Code or the statute, any suitable process or mode of proceeding may be adopted which may appear most conformable to the spirit of this Code.
Ca. Civ. Proc. Code § 187