That would take central planning. The government in capitalist societies can't force someone to open a business when unemployment gets too high, and can't force businesses to close or merge when there are inefficiencies in the market. A capitalist economic system is inherently reactionary: someone notices a demand and creates supply for it. Someone tries their hardest to keep their business open even with low demand, right up until the point where they fail catastrophically. The drive to do better than everyone else is what keeps our economy afloat, but it also sometimes runs competitors out of business.
We can have an economy that is stable and fair for everyone with no winners or losers. But people have been trained against socialism and communism for so many years, it'd be a very tough sell. The only way to have an economy flex responsively is if the government is a central planning agency for businesses.