using System;using System.Management.Automation;class PowerShhel{ public static void Main(string[] args) { string command = ""; using (PowerShell powerShell = PowerShell.Create()) { powerShell.AddScript(command); var results = powerShell.Invoke(); } }}