title: Running PowerShell from .NET Core
body: <p>Is there a way to run PowerShell scripts from .net-core ? </p>
  
  <p>I'm trying to run a PowerShell script in a new .net core 'website\api'.
  From what I can tell in order to run PowerShell on .net we need to add the</p>
  
  <p>System.Management.Automation namespace.</p>
  
  <p>This isn't possible for .net core ( or I haven't found the appropriate way to add it).
  There are a couple of NuGet packages which are also aimed at adding this DLL to project but those aren't compatible with .net core either.
  Is there a way to do this on .net core ? 
  Here are some links I've tried but none of them are .net core specific:</p>
  
  <p><a href="http://www.powershellmagazine.com/2014/03/18/writing-a-powershell-module-in-c-part-1-the-basics/" rel="noreferrer">http://www.powershellmagazine.com/2014/03/18/writing-a-powershell-module-in-c-part-1-the-basics/</a></p>
  
  <p><a href="https://stackoverflow.com/questions/1186270/referencing-system-management-automation-dll-in-visual-studio">Referencing system.management.automation.dll in Visual Studio</a></p>
  
  <p><a href="https://www.nuget.org/packages/System.Management.Automation/" rel="noreferrer">https://www.nuget.org/packages/System.Management.Automation/</a></p>