Connecting to MongoDB from PSU

Hi,
I’m trying to connect to a MongoDB instance from a PSU script:

import-module Mdbc

Connect-Mdbc -ConnectionString “mongodb://localhost:27017” -DatabaseName “JDEInfo” -CollectionName E1Customers

Get-MdbcData

The script run fine from VSCode, but I get this error then run in PSU:
[12:48:53 PM] [ERR] Could not load type ‘System.Runtime.Remoting.Messaging.CallContext’ from assembly ‘mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’.

Any help greatly appreciated :slight_smile:

Update: If I switch to PS 5.1 It runs correctly… So I suspect it’s a .Net Version DLL issue.
I really need it running in Core.