It could depend on the free zone, but at least for some free zones, it is currently not possible to apply for the entry permit outside the country. You need to enter the country and then apply for an entry permit, that is for your visa to be changed from a tourist visa to a residency visa. During normal times, they would be able to process the entry permit while you’re outside the country, which will save you several days in the UAE.