Put commands into a text file, just like you would into the command line, - line by line. like how you have this:
replace the X's with the real 8 bytes of a MAC address though, ("X"'s aren't hexidecimal). to do this you could either echo each line into the file with the ">>" bash 'dump and append' option like so:
start airmon-ng wlan1
iwpriv wlan1 highpower 1
iwconfig wlan1 txpower 14
macchanger --mac=XX:XX:XX:XX:XX:XX wlan1
Then make it executable by typing
echo "airmon-ng wlan0 start" >> program.sh
echo "iwpriv wlan1 highpower 1" >> program.sh
echo "iwconfig wlan1 txpower 14" >> program.sh
echo "macchanger -m 00:11:22:33:44:55 wlan1" >> program.sh
echo "airodump-ng wlan1" >> program.sh
then running it with
chmod +x program.sh
that's called "shell scripting" and you can use it with any operating system that has a UNIX-like shell. Even the oldest of Sun systems I have worked on have all of the commands above, some of them I needed to use built-in shell commands to create programs for people though, like "echo", "while", "read", ">|>>" etc.
You can make a shell script take your user input too, and make some of commands you have in the script contain variables. Here I will show you how to do it with another language, Perl:
That one asks you for the variable $addr, so you dont have to keep editing the file to change the IP you would like the "system" to "nmap." There is a Perl Module i have been playing with that is completely amazing called IO::Socket that allows you to create your own "nmap"
echo '#!/usr/bin/perl' >> program0.sh
echo 'print "give me an address to ping ";' >> program0.sh
echo '$addr = <STDIN>; chomp $addr;' >> program0.sh
echo 'system ("nmap -T Aggressive $addr"); >> program0.sh
echo 'exit;' >> program0.sh
Then make it executable so you can simply run it with dot slash like so:
Oh, yeah, or you could use a command line text editor such as:
chmod +x program0.sh
Then using the commands listed below, (the "^" means the CTRL key) so CTRL+X to exit "y" or "n" to save changes.
You could now, take what tiny samples i gave above and start coding your own "scripts" by altering what programs to use, and what variables to choose.
I'd suggest using books like "Perl for dummies, Perl by O'reilly, Classic Shell Scripting by O'rielly, and maybe even Mastering Regular Expressions, Awk programming, and Sed and Awk (which covers grep too) all by O'reilly. They helped me out a lot! And don't feel over whelmed, take it slow and have fun! coding, scripting, and hacking in a lab is fun!