This is an awkward job that Microsoft needs to fix, but it worked for me.
Rename the .bat file to .exe temporarily. Then right-click on the file name. It will give you the Pin option to run. Paste it into the Start menu. This will not work, but there is an option to open the file location. Select this and change the name to .bat. Now it works.
source share