I have a .NET Core application that utilizes the PowerShell libraries (System.Management.Automation
) to Get / Install / Uninstall-WindowsFeature on Windows Server machines. The equivalent on non-server machines is to use Get / Add / Remove-Capability.
For a variety of reasons I am investigating alternative methods for replicating the above functionality without using Powershell in our application.
Are there other alternative libraries available (either commercial or OpenSource)? Are there .NET or Win32 Api/libraries that could be leveraged?