Using JavaScript to Write a Custom CLI