scripts save on exit and load on entry
Merge pull request #1598 from AndrewMeadows/paddle-fixes-2

Paddle fixes 2
Merge pull request #1599 from hifialanwu/master

#19488 scripts save on exit and load on entry
Fix formatting to abide by compressed K&R style.