A portable motorized racking tool and a method for installing, removing and testing electrical equipment is described herein. A circuit breaker having a frame can be attached to a metal surface around the electrical equipment with magnets. The frame can support a solenoid with a plunger, a motor control for operating a motor with a gear assembly that rotates a tool first in one direction, then in a second direction, while the operator controls the framed tool by using a remote switch operator. The remote switch operator can supply power and signals to the framed tool, while the operator can maintain a position outside an arc flash hazard zone.