This issue can occur if the Registry items have become corrupted or if you installed and uninstalled some software and that corrupted the context menu. If you face this issue, this is what you can do!
You can now use Microsoft Edit to create and edit text files directly in Command Prompt or PowerShell without switching apps, ...