When I for example read some uninstall string from the registry like \"C:\\Program Files (x86)\\Opera\\Launcher.exe\" /uninstall I can copy it to the Powershell
I think Bill Stewart's answer is the right way to do it. If for some reason you can't get Bill's answer to work you could use Invoke-Expression to do it though.