The effect of "cd" cannot be exported outside the shell script to the invoker of the script. That is why "cd" is a shell built-in instead of an executable command in /bin.