How Do I Execute a Shell Script in Interactive mode?

I’m also not sure what you mean by “interactive mode”.

If you want to run a script / command line in the Terminal you can try my Execute a Script in Terminal action. It simplifies the process of pasting a command line into the Terminal, it takes account of busy windows etc., it lets you choose if you want to execute it in a new session or not, etc.

If you are going to use variables, make sure to download version 2 and report back any anomalies, since I haven’t tested much that version.