So I've set up a file with some aliases for commands that I commonly use. I added it to the registry like in this answer.
I want to use this alias like so:
>cmd /k newalias
'newalias' is not recognized as an internal or external command,
operable program or batch file.
So this alias cannot be used.
If I type >cmd /k newalias
again, now it works, so the problem seems to be that the command is being run before the doskey commands in the alias file are executed.
Is there any way to wait until after these aliases are created before running the command?