getting all the " properly masked is tricky. Have you tried using the command line adapter instead?
You are call WMI remote from a remote machine. Can you use WMIC on the local peer?
Check out this article and let me know if that helped. I've attached a sample module for education purposes.
With WMIC and TSO you have to make sure that all special characters are properly masked.
With PowerShell offering better WMI integration, it might be better to utilize the PowerShell adapter instead.