Migrate existing scripts