How do you wire a ceiling box & switch using a wall outlet as power?

installed a new ceiling box and light switch, the only close power source is a wall outlet.

  3 answers