Introduction
Functions let you group commands to reuse them easily. Calling a function runs those commands whenever you need.
You want to repeat a set of commands multiple times without rewriting them.
You want to organize your script into smaller, manageable parts.
You want to run a specific task inside your script when certain conditions happen.