I have a script that contains a couple of variables that need to be set as an environment variable
The list of variables change constantly and modifying it on my end
Are you looking for the '.' command (also spelled 'source' in bash):
bash
source foo.sh
Since you need to export them to the environment as well, you may need to do a little extra work:
while read -r line; do export "$line" done < foo.sh