Yeah, this is the same thing.  WinRM barfs when you hand it a single quote character.  It can't handle it properly and escapes it to "#39."

I'm open to other ways of handling the single quote issue.