I learned how to do it from squeezing both eyes shut, then practicing by opening my right eye while holding the left one shut with my hand. Eventually, my body seemed to figure out how to move both the eyelids independently.
(Don’t feel bad if you can’t do it. I’m incapable of doing that Star Trek thing with my hands.)