Keyboard shortcut to create a new txt file with notepad

None of the commands in this thread open Notepad, unless I've missed one in all the posts.

i know, i manually changed that to this, but learned the standard code was better

function OnClick(clickData)
	var cmd = clickData.func.command;

	var fso = new ActiveXObject("Scripting.FileSystemObject");
	var TXTPath = fso.BuildPath(clickData.func.sourceTab.path, "MyNote.txt");

	if (fso.FileExists(TXTPath)){
	    var txtFileMeta = fso.GetFile(TXTPath);
		txtFileMeta.Attributes = 0; // Clear Read-Only + Hidden.
		var txtFile = fso.CreateTextFile(TXTPath, true, true);

This code can create a txt file in UTF-16 LE BOM
I am not a script writer expert, here lxp or Leo or any other fellow script expert can customize this code for UTF-8 BOM.
I copy this code from another script, maybe all the line of this script code not be needed I'm not sure about that. but probably you can start with this code. Please post the final solution code here. Thanks

See the documentation on the object and method you are using to open the text file, and how to open it in Unicode mode: