Building the command-line script