Judges don’t give orders to the military.
The military is under the executive branch, not the judicial.
Judges can’t countermand military orders, promotions, reductions, court martials, etc.
Somewhere in what used to be our great Country, you could find a Federal judge who would rule that the Constitution is no longer valid.