power folding mirror

im looking into buying some power folding mirrors and i was wondering how the wiring aspect task of it would be and what i have to do inorder for them to work…