Hi everyone, I wanted to start a string with powershell on C# in net8.0 but I can't find the compatible nuget Solution?
I am not sure but it should be "using PowerShell Shell = PowerShell.Create()" I think or no "using" necessary at all and done like PowerShell Shell = PowerShell.Create() see here: https://learn.microsoft.com/en-us/d...utomation.powershell?view=powershellsdk-7.4.0 or if you are talking about adding a string of commands to the created powershell process, hard to know what you asking exactly from your post honestly and just looking at that snippet, but that would be handled as so: PowerShell shell = PowerShell.Create("get-process"). AddCommand("foreach { $_.Name }", true);