Implemented required argument check and pass output directly to the command