Source code to string in variable
The load script command loads a script as an object to be run, rather than as text to read or manipulate.

If you want to access the actual text of your script, you can use osadecompile:

do shell script "osadecompile ~/Library/Scripts/test.scpt"
word 2 of result


Compiled scripts saved with AppleScript Editor usually have LF line endings in strings but CR line endings in other places. osadecompile converts all line endings to LF. do shell script converts line endings to CR unless you add a without altering line endings specifier.