Replicating Classic Notepad On Windows 11 Using PowerShell and Inline C#
Maybe on Windows 11 you are having issues like Notepad won’t launch This is how you can replicate a classic style notepad as a PowerShell script, which you can then modify to add your desired features.