bail; in general.
Under circumstances prescribed in this article, a court, upon application of a defendant charged with or convicted of an offense, is required to issue a securing order for such defendant during the pendency of either:
1. A criminal action based upon such charge; or
2. An appeal taken by the defendant from a judgment of conviction or a sentence or from an order of an intermediate appellate court affirming or modifying a judgment of conviction or a sentence.