You may move a Rainbow Energy with Shift Gear, since it does provide {M}.
If Prism Energy is attached to a Basic Pokemon, you may move it with Shift Gear. However, if you choose to move it onto a non-Basic, you may not move it off again, as it no longer provides {M}.
In future, post card scans of all the relevant cards, not just one. Thanks!