The President decides what gets shut down I believe.
Each department puts forth their “essential” personnel to the Executive.