This depends on the timing of everything. Since you haven't given dates a COS might be an option. Even if COS isn't an option, you should be cap exempt. Any new employer can get you an H1 and get approved. Then you will go to the consulate and get approved in which then you can work.