Did you ever get this resolved?
I am having a similar issue, I replaced the switch for the sunroof and it worked fine for a couple weeks now having the same issue again. Sometimes it doesn't want to open, sometimes it doesn't want to close, currently it is stuck somewhere in the middle.