The script returns these variables
Name of the network =$wepnetwork
MAC of th AP =$macofap
Your MAC =$macofattacker
You mite call me lazy but i couldnt get myself to finish the script.So the script never left the ALPHA stage . So you can add the the aircrack commands at the end of the script and pass the above variables to automate cracking.
P.S: A very good script for automated WEP cracking can be found here -hxxp://daouid.googlepages.com/airoscriptwepcrackingscript
Edit: The tittle should read ; Script to automate WEP cracking