The cd value is local to the current script, which ends when you fall off the end of the file.
What you are trying to do is not "super simple" because you want to override this behavior.
See exec to replace the current process with the process of your choice.
To issue commands to the interactive Bash, see the --rcfile .
tripleee
source share