Butler scripting interface

When controlling the EMP firmware, you will typically need to run a sequence of several empbutler commands in order to carry out a test (e.g. playing data through your payload firmware, and capturing the outputs). If you need to repeat these procedures several times, running the same sequence of commands manually can become tedious (and unexpected behaviour can easily occur from human error). Instead, you can write down the list of empbutler do subcommands in a text file (without the empbutler do prefix), and then use the empbutler script command to execute those commands.

Specifically, the empbutler script command accepts one argument: the path to the file containing the empbutler do subcommands. In this file, lines that begin with # or only contain whitespace are ignored, and all other lines are assumed to contain subcommands of empbutler do.