I have a file.sh with this, when run show : TERM environment variable not set.
smbmount //172.16.44.9/APPS/Interfas/HERRAM/sc5 /mnt/siscont5 -o iocharset=ut
You can see if it's really not set. Run the command set | grep TERM.
set | grep TERM
If not, you can set it like that: export TERM=xterm
export TERM=xterm