arduino variable speed fan controller

something like this

I think these fans have a variable speed controller that you can buy but I want the arduino to control that

thanks