def _run_ps(self, powershell, is_b64=False):
        """Executes a powershell command, no checks for length are done in this version.
        The lack of checks here is intentional so that we don't run into an infinte loop
        when converting a long command to a script"""
        # connect
        session = self._get_session()
        # execute
        response = self._winrm_run_ps(
            session, powershell, env=self._env, cwd=self._cwd, is_b64=is_b64
        )
        # create triplet from WinRM response
        return self._translate_response(response)
Executes a powershell command, no checks for length are done in this version.
        The lack of checks here is intentional so that we don't run into an infinte loop
        when converting a long command to a script
contrib/runners/winrm_runner/winrm_runner/winrm_base.py