MX_SHELLEX (MIAMEX 96) now works under ATE (is now a wrapper for AG_SHLEXEC) and supports the additional waitflag argument:
xcall MIAMEX, MX_SHELLEX, spec$, action$, parms$, dir$, showflags, waitflag
As with AG_SHLEXEC, all parameters after spec$ are optional.