By contacting USCIS and explaining their situation. Basically, there is no way to (legally) get a green card without going through US Customs and Immigration Services.
You should probably seek an immigration lawyer to help you. Sometimes ICE agents get a little upset when they see that status was changed like that without going through proper procedures.