中に"が入るなら
echo '(setq load-path (cons "." load-path))' > script
の方が見やすくね?