cordless drill pwm transistor pins

Can you show the full markings on that MOSFET - it may be logic-level in which its simple to interface. If not just replace it with a logic-level MOSFET.

Logic level mosfets have the words "Logic Level" at the start of the datasheet, or have a rating that looks like "Rds(on) = xxx ohms at Vgs=4.5V" (sometimes Vgs=5.0V). If there is only a specification with Vgs=10V then its unlikely to be logic level.