The portal trick with infinite loop would not work. The bottom portal would block the gravitational pull and once all the momentum is lost due to the coil gathering electricity, the metal object would just lie flat in top of the bottom portal.