I'll try. First, are you sure a driver and/or firmware is installed to make the adapter work? If so, then what is the encryption type of the access point?
When I used scripts to manage my wireless interface, I would open the old Network Configuration utility (system-config-network) and create a new wireless connection there. For no encryption or WEP, it is easy to enter the pertinent information for the access point. With the connection pre-configured like that, you often can get connected with just this in a terminal...
For WPA encryption, I still used system-config-network to pre-configure the connection. But an additional complication is the need to create a wpa_supplicant.conf file. For details about that and the terminal commands to get it connected, go here for my recommendations...