Sure, it works. It is what I use preferably to run external programs.
You do not need control over the outside world spawn.
The 'trick' is that you before you call 4nt.exe, you must have stored all your aliases (e.g. also foo) in a file.
E.g. myalias.txt
And you call 4nt.exe using the command line switch /r which means 'r'ead that aliases from that file.
Thus 4nt.exe /r myalias.txt
Thus 4nt.exe reads by design *first* that myalias file,
then using && is similar to doing a return on the command line.
Thus as next step it executes your single alias which you also passed as a parameter (e.g. 'foo').
It will then search for foo in the defined aliases in that file which you passed.
And execute the corresponding commands of foo.
I have between 3000 and 4000 aliases defined in that alias text file, put in ASCII text tables, and edited (e.g. create new alias, replace alias file automatically via TSE macros). And can control using this aliases from the command line a lot of (Windows) (system) programs instead of clicking with the mouse (e.g. 'Start' > 'Settings' > 'Control panel' > 'System' > 'Environment variables' is replaced by one command 'en*vironmentvariables'. Thus I only have to type 'en' on the command line to have the same effect) using that aliases.
Of course one uses also (one big) configuration .ini tex file(s). But according to the DRY principle (do not repeat yourself), one should only change the information in one place. So combining the two configuration possibilities, splitting it in an alias part and independent .ini file part. The content of the configuration files (alias and .ini) varies depending on my geographic location (e.g. job versus elsewhere), adapted to the e.g. specific file paths which you use (e.g. c:\windows\system32\notepad.exe on one machine, c:\winnt\system32\notepad.exe on another machine. But on the command line I only type 'no'. Similar for the TSE executable, I only type the alias 't' on the command line, it will check the currently active alias file for where to look. So only having to remember one constant command, independent of the geographic location where you are.
It is such a smooth and simple system (using this aliases), that I wanted to share this idea (for those interested of course).