A man has faced court after putting "people's lives at risk" by installing gas appliances without the necessary registration, a safety watchdog has said.