can someone tell me how could I run a script in an environment that does not include a path? like the environment provided by cron?
You start your script using an absolute pathname and within the script you first set the PATH variable (and probably other variables) according to your needs.