I draw your attention to:
fraespappp8:/data/apps > type topic_file_publish.sh
topic_file_publish.sh is hashed (/data/apps/pnbgstk/publication/topic_file_publish.sh)
the `type` command clearly says that is hashed and seems to point to /data/apps/pnbgstk/publication/topic_file_publish.sh which is what you expect.
Some general points.
(1) which command will tell form which element in the path, the program is found.
(2) It all depends on the contents of the specific scrips which you haven't shared.