Matched batch script order to flowchart

Still need to fix the way it interprets conditionals matching things
with parameters.