Error during Merge-Script and PowerShellCore = $true

I suppose this problem is related somehow to