Hey,
You can use the command "mgmt_cli run-script script-name <name> script <scriptname> targets.1 <target_machine_name> ... --format json"
"..." equals more options that are possible to be referenced, like e.g. comments.
You can pick up more information here. If you want to execute scripts from the repository you should be able to do that by just specifying the path to the script within the <scriptname> parameter. Of course here the destination should be the SMS itself, as the repo is located locally there.
Edit: Seems like Valeri was faster than me, nvm.