added cli cmd execution and logging to ntap api class