enh #3189, added $templateExtension parameter to MigrateCommand

Implementation of #3189