Revert "Revert "Use AutoScript for base scripts""

This reverts commit 20925c1bca42fc2464e1057174e22fb2507139b1.