eshell-apply*

eshell-apply* is a compiled Lisp function in `esh-cmd.el'.

(eshell-apply* PRINTER ERRPRINT FUNC ARGS)

Call FUNC, with ARGS, trapping errors and return them as output.
PRINTER and ERRPRINT are functions to use for printing regular
messages, and errors.