The rope or cord used to open or shut something is called a drawstring.
See All 3498 Episodes of "lightningesl.com"