Well, this is a first (and likely the last) but I have to side with Starbucks on this. How can a judge stop a business from closing?
Might want to look at their lease contract.
Starbucks may be obligated to keep operating their store until their lease runs out.
They could get out of it if they were in bankruptcy, but they're far from it.