A banned driver risked the activation of a suspended prison sentence when he decided to use his car to get to work and back, a court heard.