Expand shared scripts support

Shared scripts now supports adding arbitrary scripts