He wrote an automation script to process the data.
Tips
usage
脚本 covers both the dramatic sense (film/theater script) and the computing sense (shell script, Python script). Context makes the meaning clear. In computing, 脚本语言 (jiǎoběn yǔyán) means scripting language.