How to run batch close

Hi ,
Im looking for a way to run batch close (SETTTLE) on open batch (using code, not UI),
couldn’t find anything on javadoc related.

any help or code snippet will be appreciated, thanks.