Use PowerShell automation dlls for commands/scripts without PowerShell

I came across this GitHub repository called PowerShdll

It allows you to run PowerShell scripts or commands without access to PowerShell.

It does this by using PowerShell automation dlls.

As this includes all of the C# source code, you can see how this is accomplished.

While the repository has the compiled tools, if you have Visual Studio 2019, you can load the solution, and compile the tools yourself.