There is/was a mode for this in Windows server. I also seem to remember a low cost/free windows for server or embedded meant for iot or whatever that featured cmd only without explorer.
PE is the Preinstallation Environment, used by Windows Setup and Windows Recovery.