To run these command-line utilities you will need to have root priveledges
iwconfig [interface] essid [SSID] iwconfig [interface] enc [WEP key] dhclient [interface]