You need to apply for a work permit to work legally in the United States while your AOS application is pending. Talk to our Attorney On-Call about getting a work permit.