What is the difference between interactive use of shell command and running a shell?
In an interactive shell session the shell program waits for the
user to type in a command. When receiving a command the shell
program will then attempt to locate it and process (execute) the
command. You are interacting with the shell.
Running a shell file requires a pre-stored series of commands
stored in a file. Unless the shell program you are running is
interactive then the shell executes each command in sequence,
without involving the user at all.