What is a script?
A script is a list of commands that are executed by a certain program or scripting engine. Scripts may be used to automate processes. Script files are usually just text documents that contain instructions written in a certain scripting language. When opened by the appropriate scripting engine, the commands within the script are executed.
Bolt can execute scripts either on the command line or from a Bolt plan using the run_script() function.
How is a script different from a task?
Bolt tasks are similar to scripts, but they are kept in modules and optionally have a defined API for input into the task and output from the task. This allows you to reuse and share them, and interact with them programmatically more easily. Using the API capabilities of tasks requires adding a JSON metadata file next to the task, which oftentimes is unnecessary work for users who simply want to run a script.