code: def _RunScript(self, script):
      
      process = subprocess.Popen(
          script, shell=True, stderr=subprocess.STDOUT, stdout=subprocess.PIPE)
      while True:
        for line in iter(process.stdout.readline, b''):
          self.logger.info(line.decode('utf-8').rstrip('\n'))
        if process.poll() is not None:
          break
docs: Run a script and log the streamed script output.
  
      Args:
        script: string, the file location of an executable script.