It is not advisable to mix interactive mode and command line mode script files due to the differences in the way that they are interpreted.