You can file for adjustment status, you will need to wait until you get a work permit (3 to 9+ months to get), and advance parole for travel outside the USA to be readmitted to US and to keep the AOS alive, if you leave the USA without AP you will abandon the i485 (AP are taking 4 to 10 months), green cards are taking 12 to 18 months.
So, when you file the i130, i131, i765, i131, and i864 (the adjustment of status application) you need to wait to get permission to work and travel out of the USA before you can do either and will need to wait to get a USA divers license until you get the work permit. USCIS has speeded up some applications post COVID backlogs. A few new AOS filers getting work authorization a relative quick 60 days or so after filing but you can't count on that.
Consular processing:
If you file an i130 only you will need to leave the US and get a visa from your local US consulate in your home county to return to the USA and get a green card on arrival, most likely 18 months or so after filing. Please note, if you overstay your current visa, you could get a bar to entering the USA which will complicate this option.