Any program that would allow the restrictions you're talking about has to be
designed for it. How hard is it to design it to take different command-line
arguments for the different cases, rather than using some new API?
Sigh. Once again, those who don't understand Unix are doomed to re-invent