Is there a command line or programmatic way to add an indicator/script to a chart ?
No, you can add it from the Indicators tab or Pine Editor.