Whenever by this chapter a motion is authorized against an officer, or other person acting under the orders of court, it carries with it the right to move against such person or officer and the sureties on that officer's official bond of such officer or other person, or other bond executed in the discharge of the particular duty, although such bond may not be in strict compliance with the law.