I did a test script like this:
Code:
#!/bin/bash
echo "$1"
exec bash
And executed it like this:
Code:
gnome-terminal --command="./temp.sh hey"
And it worked.
I don't know how are you executing your script (what arguments/options to what programs).
But also running "bash -i" apparently makes it interactive. "exec bash" means replace the current shell for "bash", thus running a new bash instead of the current... which may, or may not be want you want (you can use it as a shell, but if the script you ran made some variables you needed you should "export" them to be used in the new shell too).