using (PowerShell PowerShellInstance = PowerShell.Create()) { PowerShellInstance.AddScript("Get-website"); var lstSite = PowerShellInstance.Invoke(); foreach (var psObject in lstSite) { result += psObject + "***"; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)