The file myfile.sh looks like this:
myfile.sh
echo "hello"
The file I run looks like this:
a=$(cat myfile