I came across this article about how to use PowerShell without using PowerShell.
Below is code to run a PowerShell .ps1 file without using PowerShell.
I use CS-Script to run my C# code, but with a few changes to the code, you can use the C# compiler instead.
Read more
Below is code to run a PowerShell .ps1 file without using PowerShell.
I use CS-Script to run my C# code, but with a few changes to the code, you can use the C# compiler instead.
Code:
//css_args -verbose
//css_autoclass
//css_host /platform:x64
using System.Collections.ObjectModel...
Read more