(Original idea and codebase comes from https://github.com/p3nt4/PowerShdll)
- System.Management.Automation
- (Only for DLL) NuGet -> DllExport (https://github.com/3F/DllExport)
C:\>rundll32 [path-to-project]\DLL\bin\Debug\x64\PowerShellDLL.dll,Main
or
C:\>[path-to-project]\EXE\bin\Debug\x64\PowerShellDLL.exe