Worker was turning on a VFD. When the electrician engaged the switch EE saw a flash and heard a loud bang. The breaker worked and arc was inside cabinet. Previously during a maintenance work a panel was installed with a self taping screw that punctured a cord. When the system was energized it went to ground and caused and arc inside the cabinet.