What AWOL is alluding to is that the millis() < 10000 statement should look more like
if(millis() - lastMotion < 10000)
where lastMotion is a long that gets set whenever the PIR says that motion has occurred. That way, the motor will run for 10 seconds every time the PIR goes off, which is more like what you want to do.