batch command creation pseudocode