Elevated commands can fail via winrm under certain conditions like the machine name being changed. Detect this by checking for a known exit code combined with known output included within stderr. If found, attempt to re-execute the command using a machine prefixed username if possible.