I am trying to run this script:
$dll = Add-Type -Path \\machineX\Folder\\AL.Scripting.dll
New-Object AL.Scripting.BsmScriptObject
When running on PS 5.1 everything runs fine, but when ran on PW 7 I get:
System.AggregateException: One or more errors occurred.
(Error importing Scripting Object DLL.Exception calling ".ctor" with "0" argument(s):
"Method not found: 'Void System.AppDomainSetup.set_ApplicationBase(System.String)'.")
I am trying to make this PW command result accessible through .NET Core API, but it seems it's to be impossible, because .NET Core solutions can use only PowerShell 6.0-7.0 versions. Maybe is there any workarounds?