As an alternative to using the SANmp CLI (Command Line Interface), you may also use Apple’s tools such as Automator and AppleScript to create scripts for automating various functions of SANmp (v.4.2 or higher). While SANmp does not have custom AppleScript actions, it is possible to script many tasks by taking advantage of Apple’s mechanism for scripting based on the labels of UI elements.
See attached file for an example script that adds a new user "1" with a password of "1".