To get past the electric fence in Commando 2, your first move is to shoot the electrical nodes at the top to cut the power. Once that's done, you can jump over the fence.
Be warned, though—clearing it isn't easy. The jump requires precise timing, so line yourself up carefully and go for it when the moment is right. Miss the timing and you'll likely get zapped, so patience pays off here.