I haven't seen a ready made LISP for this but i think what you are asking is possible.
Is your wall a line, polyline, or in a block by the way? That makes things easier or not (polyline is easiest)
I guess you' want to select the wall line, then the 2 end points, the socket outlet and the panel, then the LISP would offset the wall (easy, '(command "offset" Distance SelectedWall)', work out the centre of the equipment (there are LISPs out there, centres of circles are easy, and for rectangles if they are polylines can get the coordinates and work out the geometric centre), and draw a line from that to the nearest point on the polyline (get nearest point or something,
So it is all possible if there isn't anything
Have you had a go at putting something together yet? try it step by step, see if you can offset the wall line first, then see if you can get something to get the centres of the equipment.. and go frpm there