Add in regedit Computer\HKEY_CURRENT_USER\Software\Microsoft\Command Processor
new key :
Autorun
=doskey /macrofile="path/to/file/macro.txt" /f
Create file path/to/file/macro.txt
nr=npm run $*
ls=dir /OG /B $*
sub="D:\Programs\Sublime Text\sublime_text.exe" $*