The judge shall do so upon a motion by the prosecutor performing preliminary investigation.
The clerk may also sign the minute of any judgment rendered upon a motion granted by consent.