All scripts already have CLI support if it's not implemented; it's just that there's no parameters. However, if you'd like to add in CLI support with parameters as well, if parameters are input by the user, then the getParameters() method of Script will contain them. From there, you need to parse that String to mean whatever info/data you want it to mean.