GPT not inoking in linux terminal

when i run the script tscript (650 Bytes)
it says no gpt command found. while i run the snap using path cd snap/bin/gpt it get runs but when i use the terminal with script it doesn’t run it gives error

I am no expert in linux but if this happens you need to enter the path (snap/bin/gpt ) to your bash

This makes it available from any directory.