You don't need the CLI structure.
If you remove NP_Output you should remove NP_CloseOutput, too.
You can use Printf (with a capital "P") for debug output into your Shell window. You shouldn't use ANSI functions at all when working with sub processes. AmigaOS is full of functions you can use safely instead.
Bye,
Thomas