'Script' is Latin for 'something written' — from 'scribere,' from PIE *skribh- (to scratch).
A system of written characters; the written text of a play, film, or broadcast; handwriting as distinct from print.
From Proto-Indo-European *sker-/*ker- ("to cut, to scratch") via Latin scriptum ("something written"), past participle of scribere ("to write", literally to scratch or to incise). The PIE root *sker- (to cut, scratch) underlies writing in many ancient cultures where writing was done by scratching on clay, wax, stone, or bark. Latin scribere -> scriptum ("written thing") -> Medieval Latin scriptum ("manuscript, text") -> Old French script -> Middle English script -> Modern English script. The same Latin verb scribere produced an enormous English family: scribe,
In computing, a 'script' is a program written in a high-level language that is interpreted rather than compiled. The term was adopted in the 1960s because such programs were conceived as sets of instructions written out in sequence — like the script of a play, telling the computer what to do step by step. JavaScript, Python, and Bash are all called 'scripting languages' for this reason.