Are you trying to execute this in BSA or BAO?
if yes, then what are errors?
please share the errors.
and what are you passing when you run it via bsa or bao ?
use type 3 NSH Script, store all the arguments in one variable and call that variable command in one line.