GMT Command not found error in Shell script

Hi,

I have installed GMT, and I am trying to run a shell script with GMT commands inside. However, I am getting an error with GMT commands, for example:

makecpt: Command not found, gmtset MEASURE_UNIT inch
gmtset: Command not found.
gmtset PAPER_MEDIA A4+
gmtset: Command not found.

I ran in the terminal gmt makecpt … and it works, but when running with the shell script I get the Command not found errors. Someone could help me?

Thanks in advance!