How to execute list of commands?

Running server 1.8.4 GUI with command line on it on a win7. I want to send list of commands to that command line but I don't really understand how the things works. The point is to build huge things with thousands of commands so I wrote few php scripts that generates lists of commands I need to build those but I don't know how to execute them 1 by 1.
My first guess is to send a command to a server process from command line. Is it possible? If it is, is it also possible to save a command list to a batch file and somehow execute them one by one?
Pictures about "How to execute list of commands?"



How do I execute a Linux command list?
First, put a { on its own line. Then, insert your commands. Then, put a } on a new line and press Enter . Your commands will be executed.How do I run a sequence of commands in terminal?
The semicolon (;) operator allows you to execute multiple commands in succession, regardless of whether each previous command succeeds. For example, open a Terminal window (Ctrl+Alt+T in Ubuntu and Linux Mint). Then, type the following three commands on one line, separated by semicolons, and press Enter.How do you run a command sequentially in shell script?
Execute multiple commands sequentially in terminal using shell scriptHow run multiple commands in Linux?
Using Semicolon (;) Operator to Run Multiple Linux commands. The semicolon (;) operator enables you to run one or more commands in succession, regardless of whether each earlier command succeeds or not. For example, run the following three commands on one line separated by semicolons (;) and hit enter.15 CMD Commands Every Windows User Should Know
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Ono Kosuki, energepic.com, Content Pixie, Suzy Hazelwood