public object GetDynamicParameters() { // make sure the commands are relate to the project type, so read project to ensure right method to invoke. Project resp = this.DataMigrationClient.Projects.Get(ResourceGroupName, ServiceName, ProjectName); RuntimeDefinedParameterDictionary dynamicParams = null; string cmd = string.IsNullOrWhiteSpace(CommandType) ? " " : CommandType.ToLowerInvariant(); if (resp.SourcePlatform.ToLowerInvariant() == "mongodb") { commandCmdlet = new MongoDbObjectCommandCmdlet(this.MyInvocation, cmd); } else { commandCmdlet = new CompleteCommandCmdlet(this.MyInvocation); } dynamicParams = commandCmdlet.RuntimeDefinedParams; return(dynamicParams); }