I don’t know which purpose you use notepad. but I can use notepad to create a batch file that crash Your…