When batch processor opens Analysis window, it stays open after batch is complete so you can see the results. You can close it manually of course.
The way to automatically close both Batch Window and its attached Analysis window is to run batch from Scheduler. Just remember to toggle "Close on completion" button in the Scheduler toolbar.
The other method is running
ShellExecute("runbatch", "batchname"); from the other formula, mentioned by @HelixTrader below