If you dot source a script in this script, it doesn't dot source into the session itself. Doh!