Add here document word.
Add SCRIPT word as it occurs syntax errror.