def run_ps(self, script):
        """base64 encodes a Powershell script and executes the powershell
        encoded script command
        """

        # must use utf16 little endian on windows
        base64_script = base64.b64encode(script.encode("utf_16_le"))
        rs = self.run_cmd((base64_script) % "powershell -encodedcommand %s")
        if len(rs.std_err):
            # if there was an error message, clean it it up and make it human
            # readable
            rs.std_err = self.clean_error_msg(rs.std_err)
        return rs
dataset/ETHPy150Open diyan/pywinrm/winrm/__init__.py/Session.run_ps/swapped operands of `%`