Consider making Notepad++ a restartable Windows 10 application. The opposite of this article https://www.howtogeek.com/396884/how-to-stop-windows-10-from-reopening-your-previous-applications-after-restarting-your-pc/