title: How to process SSAS cube structures concurrently from PowerShell script using Mircrosoft.AnalysisServices namespace
body: <p><strong>TL;DR: Is there a way for a PowerShell script calling Microsoft.AnalysisServices functions to process multiple cube structures concurrently?</strong></p>
  
  <p>I have a <strong>Microsoft SSAS</strong> cube that needs several measure groups processed before the rest of the cube is processed later in the job plan. I have created a PowerShell script that enumerates the measure groups to process and calls <code>measureGroup.Process('ProcessFull')</code> from the Microsoft.AnalysisServices namespace. This works to process the measure group, dimension, <em>et.al.</em></p>
  
  <p>However, processing the measure groups in this manner doesn't allows <strong>SQL Server 2014</strong> to parallelize the processing. A cube that takes on average 2 hours to fully process was running for 7 hours before we killed it. </p>
  
  <p>Is there a way in PowerShell to batch the processes so that they are sent at the same time to the cube? If this could be done, it would allow the server to do concurrent processing instead of one object at a time.</p>
  
  <p>I have taken a look through the documentation on the MSDN as well as consulted Google, but was unable to find an answer. Thanks!</p>