In gn when using actions typically python is invoked:
action ("my_script") { script = "//script.py" args = [ "arg1"