Updated register script to call registration command