No complaint shall be filed with the magistrate unless such complaint is in writing and signed by the prosecuting attorney or by any other complainant. If the complainant is a person other than the prosecuting attorney or a city or village attorney prosecuting the violation of a municipal ordinance, he or she shall either have the consent of the prosecuting attorney or shall furnish to the magistrate a bond with good and sufficient sureties in such amount as the magistrate shall determine to indemnify the person complained against for wrongful or malicious prosecution. Whenever a complaint shall be filed with the magistrate, charging any person with the commission of an offense against the laws of this state, it shall be the duty of such magistrate to issue a warrant for the arrest of the person accused, if he or she has reasonable grounds to believe that the offense charged has been committed. The prosecuting attorney shall consent to the filing of such complaint if he or she is in possession of sufficient evidence to warrant the belief that the person named as defendant in such complaint is guilty of the crime alleged and can be convicted thereof. The Attorney General shall have the same power to consent to the filing of complaints as the prosecuting attorneys have in their respective counties.