Just add the command to the list of sudoer files using cmd visudo (this cmd requires root priviledge) as shown below:
<YOUR_USER_NAME> ALL = NOPASSWD:<ABSOLUTE-PATH-TO-CMD>
Take care of ABSOLUTE-PATH-TO-CMD, it can become a security hole.
schemacs
source share