Adding command registration logic to console service provider