Wouldn't it just be better to make a new shell that has this syntax?
+ Nu Shell
+ NGS
+ Powershell
+ Oil Shell
+ Elvish
+ Murex (which is one I'd written)
Not to mention all the LISP, Python, and other such high level language REPLs come shells.But they solve a different problem. This seems to be more like what Typescript is to Javascript: a alternative "safer" language where your end point is limited to supporting a different language. So you need to compile down to a known portable base language.