While playing tcg my Pokemon was put to sleep. I know it can not retreat on its own yet am I able to retreat it with an escape rope?
Yes, you can use the Escape Rope to switch out a Pokémon that was put to sleep.
I know from playing the TCG so much but if you want a source, here