03-18-2024, 12:58 PM
Thank you for sharing.
Using the SDK requires downloading a large number of files, and the execution speed hasn't improved.
I put the PowerShdll source code into the LA and only referenced the System.Management.Automation.dll from the PowerShell 7 installation folder. This allowed me to execute PowerShell code without any additional dependencies, and the execution speed improved significantly.
Using the SDK requires downloading a large number of files, and the execution speed hasn't improved.
I put the PowerShdll source code into the LA and only referenced the System.Management.Automation.dll from the PowerShell 7 installation folder. This allowed me to execute PowerShell code without any additional dependencies, and the execution speed improved significantly.