title: Powershell Output as an Array (Python)
body: <p>Im trying to put the Porwershell Output from <code>Get-Printer | select Name</code> into an Option Menu. How do i put the Output into an Array for example? Currently the Output is only in One Line. Each Printer is suppost to be one Option.</p>
  
  <p>Im using tkinter.
  Here is my OptionMenu</p>
  
  <pre><code>variable = StringVar(tkWindow)
  variable.set(OptionList[0])
  optionPrinter = OptionMenu(framePrinter, variable, *OptionList)
  optionPrinter.place(x=5, y=35, width=270, height=25)
  </code></pre>
  
  <p>My Powershell Process look like this:</p>
  
  <pre><code>process=subprocess.Popen(["powershell","Get-Printer | select Name"],stdout=subprocess.PIPE);
  result=process.communicate()[0]
  </code></pre>