setting local user passwords from cli

Is there a cli method to set a password for a local user account which is not the "admin" user?  This article describes a cish method of listing local users and appending 4 characters to their passwords but I'm looking for a way to perform a full password change on specific known users: https://community.sophos.com/kb/en-us/135493