AzureAD / MSAL.PS

MIT License
159 stars 29 forks source link

Import-Module MSAL.PS retrieve errors #73

Closed scr8er closed 1 year ago

scr8er commented 1 year ago

Having some issues while trying to import ps module MSAL.PS

Module works great for the purpose I need, but I'm unable to handle this import module terminating error.

ModuleType Version Name ExportedCommands


Script 4.37.0.0 MSAL.PS {Add-MsalClientApplication, Clear-MsalTokenCache, Enable-MsalTokenCacheOnDisk, Get-MsalAccount...}

checking the error history you will see the following message.

Add-Type : Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. At C:\Program Files\WindowsPowerShell\Modules\MSAL.PS\4.37.0.0\MSAL.PS.ps1:88 char:9

But It can't handle It in a try - catch block.

Name Value


PSVersion 5.1.14409.1029
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.14409.1029
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

The full exception:

{ "Exception": { "Types": [ "Microsoft.Identity.Client.Platforms.WebAuthenticationCoreManagerInterop, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.IWebAuthenticationCoreManagerInterop, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.IWebTokenResponse, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.IAccountsSettingsPaneInterop, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.AccountsSettingsPaneInterop, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WebView2WebUi.WebView2WebUi, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WebView2WebUi.WebView2WebUiFactory, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WebView2WebUi.Win32Window, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WebView2WebUi.WinFormsPanelWithWebView2, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WamBroker.AccountPicker, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WamBroker.IAccountPicker, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WamBroker.IAccountPickerFactory, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WamBroker.AccountPickerFactory, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WamBroker.IMsaPassthroughHandler, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WamBroker.IWamProxy, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WamBroker.IWebAccountProviderFactory, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WamBroker.LegacyOsWamProxy, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WamBroker.MsaPassthroughHandler, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WamBroker.SynchronizationContextExtensions, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WamBroker.SynchronizationContextAwaiter, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WamBroker.WamAdapters, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WamBroker.WamBroker, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WamBroker.WamExtensions, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WamBroker.WamProxy, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WamBroker.WebAccountProviderFactory, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WamBroker.SplashScreen.Win32Window, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WamBroker.win32.Splash, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Desktop.DesktopExtensions", "Microsoft.Identity.Client.Desktop.WamExtension", "Microsoft.Identity.Client.Platforms.Features.WebView2WebUi.WebView2WebUi+\u003c\u003ecDisplayClass3_0, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WebView2WebUi.WebView2WebUi+\u003cAcquireAuthorizationAsync\u003ed3, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WebView2WebUi.WinFormsPanelWithWebView2+\u003c\u003ecDisplayClass11_0, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WamBroker.AadPlugin+\u003c\u003ecDisplayClass4_0, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WamBroker.AadPlugin+\u003c\u003ecDisplayClass4_1, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WamBroker.AadPlugin+\u003c\u003ec, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WamBroker.AadPlugin+\u003cGetAccountsAsync\u003ed4, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WamBroker.AadPlugin+\u003cConvertToMsalAccountOrNullAsync\u003ed5, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WamBroker.AadPlugin+\u003cGetIdFromWebResponseAsync\u003ed6, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WamBroker.AadPlugin+\u003c\u003ecDisplayClass8_0, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WamBroker.AccountPicker+\u003cDetermineAccountInteractivelyAsync\u003ed7, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WamBroker.AccountPicker+\u003cShowPicker_Win32Async\u003ed8, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WamBroker.AccountPicker+\u003c\u003ecDisplayClass10_0, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WamBroker.AccountPicker+\u003c\u003ecDisplayClass11_0, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WamBroker.AccountPicker+\u003cShowPickerForWin32WindowAsync\u003ed__12, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WamBroker.AccountPicker+\u003cAuthenticator_AccountCommandsRequested\u003ed13, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WamBroker.AccountPicker+\u003cAddSelectorsAsync\u003ed14, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WamBroker.MsaPlugin+\u003c\u003ec, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WamBroker.MsaPlugin+\u003cGetAccountsAsync\u003ed9, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WamBroker.SynchronizationContextAwaiter+\u003c\u003ec, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WamBroker.WamBroker+\u003cGetProviderAsync\u003ed23, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WamBroker.WamBroker+\u003cFindWamAccountForMsalAccountAsync\u003ed25, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WamBroker.WamBroker+\u003cGetAccountsAsync\u003ed27, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WamBroker.WamBroker+\u003cRemoveAccountAsync\u003ed30, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WamBroker.WamBroker+\u003cIsGivenOrDefaultAccountMsaAsync\u003ed31, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WamBroker.WamBroker+\u003cIsMsaRequestAsync\u003ed33, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WamBroker.WamProxy+\u003cFindAccountAsync\u003ed7, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WamBroker.WamProxy+\u003cFindAllWebAccountsAsync\u003ed8, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WamBroker.WebAccountProviderFactory+\u003cGetAccountProviderAsync\u003ed0, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WamBroker.WebAccountProviderFactory+\u003cGetDefaultProviderAsync\u003ed1, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WamBroker.WebAccountProviderFactory+\u003cIsDefaultAccountMsaAsync\u003ed2, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Desktop.DesktopExtensions+\u003c\u003ec, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Desktop.WamExtension+\u003c\u003ec, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WamBroker.AadPlugin+\u003c\u003ecDisplayClass4_1+\u003c\u003cGetAccountsAsync\u003eb2\u003ed, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", "Microsoft.Identity.Client.Platforms.Features.WamBroker.AccountPicker+\u003c\u003ecDisplayClass11_0+\u003c\u003cShowPickerWithSplashScreenImpl\u003eb__0\u003ed, Microsoft.Identity.Client.Desktop, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae", null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null ], "LoaderExceptions": [ "System.TypeLoadException: Could not find Windows Runtime type \u0027Windows.Security.Authentication.Web.Core.WebTokenRequestStatus\u0027.", "System.TypeLoadException: Could not find Windows Runtime type \u0027Windows.Security.Authentication.Web.Core.WebTokenRequestStatus\u0027.", "System.TypeLoadException: Could not find Windows Runtime type \u0027Windows.Security.Authentication.Web.Core.WebTokenRequestStatus\u0027.", "System.TypeLoadException: Could not find Windows Runtime type \u0027Windows.Security.Authentication.Web.Core.WebTokenRequestStatus\u0027.", "System.TypeLoadException: Could not find Windows Runtime type \u0027Windows.Security.Authentication.Web.Core.WebTokenRequestStatus\u0027.", "System.TypeLoadException: Could not find Windows Runtime type \u0027Windows.Security.Authentication.Web.Core.WebTokenRequest\u0027.", "System.TypeLoadException: Could not find Windows Runtime type \u0027Windows.Security.Authentication.Web.Core.FindAllAccountsResult\u0027.", "System.TypeLoadException: Could not find Windows Runtime type \u0027Windows.Security.Authentication.Web.Core.WebTokenRequest\u0027.", "System.TypeLoadException: Could not find Windows Runtime type \u0027Windows.Security.Authentication.Web.Core.WebTokenRequest\u0027.", "System.TypeLoadException: Could not find Windows Runtime type \u0027Windows.Security.Authentication.Web.Core.WebTokenRequestStatus\u0027.", "System.TypeLoadException: Could not find Windows Runtime type \u0027Windows.Security.Authentication.Web.Core.WebTokenRequest\u0027.", "System.TypeLoadException: Could not find Windows Runtime type \u0027Windows.Security.Authentication.Web.Core.WebTokenRequest\u0027.", "System.TypeLoadException: Could not find Windows Runtime type \u0027Windows.Security.Authentication.Web.Core.WebTokenRequest\u0027.", "System.TypeLoadException: Could not find Windows Runtime type \u0027Windows.Security.Authentication.Web.Core.WebTokenRequest\u0027.", "System.TypeLoadException: Could not find Windows Runtime type \u0027Windows.Security.Authentication.Web.Core.WebTokenRequest\u0027.", "System.TypeLoadException: Could not find Windows Runtime type \u0027Windows.Security.Authentication.Web.Core.WebTokenRequestResult\u0027.", "System.TypeLoadException: Could not find Windows Runtime type \u0027Windows.Security.Authentication.Web.Core.WebTokenRequestResult\u0027.", "System.TypeLoadException: Could not find Windows Runtime type \u0027Windows.Security.Authentication.Web.Core.WebTokenRequestResult\u0027.", "System.TypeLoadException: Could not find Windows Runtime type \u0027Windows.Security.Authentication.Web.Core.WebTokenRequestResult\u0027." ], "Message": "Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.", "Data": {

                           },
                  "InnerException":  null,
                  "TargetSite":  {
                                     "Name":  "GetTypes",
                                     "DeclaringType":  "System.Reflection.RuntimeModule, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089",
                                     "ReflectedType":  "System.Reflection.RuntimeModule, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089",
                                     "MemberType":  8,
                                     "MetadataToken":  100681382,
                                     "Module":  "CommonLanguageRuntimeLibrary",
                                     "IsSecurityCritical":  true,
                                     "IsSecuritySafeCritical":  false,
                                     "IsSecurityTransparent":  false,
                                     "MethodHandle":  "System.RuntimeMethodHandle",
                                     "Attributes":  145,
                                     "CallingConvention":  1,
                                     "ReturnType":  "System.RuntimeType[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089",
                                     "ReturnTypeCustomAttributes":  "System.RuntimeType[] ",
                                     "ReturnParameter":  "System.RuntimeType[] ",
                                     "IsGenericMethod":  false,
                                     "IsGenericMethodDefinition":  false,
                                     "ContainsGenericParameters":  false,
                                     "MethodImplementationFlags":  4096,
                                     "IsPublic":  false,
                                     "IsPrivate":  true,
                                     "IsFamily":  false,
                                     "IsAssembly":  false,
                                     "IsFamilyAndAssembly":  false,
                                     "IsFamilyOrAssembly":  false,
                                     "IsStatic":  true,
                                     "IsFinal":  false,
                                     "IsVirtual":  false,
                                     "IsHideBySig":  true,
                                     "IsAbstract":  false,
                                     "IsSpecialName":  false,
                                     "IsConstructor":  false,
                                     "CustomAttributes":  "[System.Security.SecurityCriticalAttribute()]"
                                 },
                  "StackTrace":  "   at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)\r\n   at System.Reflection.Assembly.GetTypes()\r\n   at Microsoft.PowerShell.Commands.AddTypeCommand.LoadAssemblyFromPathOrName(List`1 generatedTypes)\r\n   at Microsoft.PowerShell.Commands.AddTypeCommand.EndProcessing()\r\n   at System.Management.Automation.CommandProcessorBase.Complete()",
                  "HelpLink":  null,
                  "Source":  "mscorlib",
                  "HResult":  -2146232830
              },
"TargetObject":  null,
"CategoryInfo":  {
                     "Category":  0,
                     "Activity":  "Add-Type",
                     "Reason":  "ReflectionTypeLoadException",
                     "TargetName":  "",
                     "TargetType":  ""
                 },
"FullyQualifiedErrorId":  "System.Reflection.ReflectionTypeLoadException,Microsoft.PowerShell.Commands.AddTypeCommand",
"ErrorDetails":  null,
"InvocationInfo":  {
                       "MyCommand":  {
                                         "Verb":  "Add",
                                         "Noun":  "Type",
                                         "HelpFile":  "Microsoft.PowerShell.Commands.Utility.dll-Help.xml",
                                         "PSSnapIn":  null,
                                         "Version":  "3.1.0.0",
                                         "ImplementingType":  "Microsoft.PowerShell.Commands.AddTypeCommand",
                                         "Definition":  "\r\nAdd-Type [-TypeDefinition] \u003cstring\u003e [-CodeDomProvider \u003cCodeDomProvider\u003e] [-CompilerParameters \u003cCompilerParameters\u003e] [-Language \u003cLanguage\u003e] [-ReferencedAssemblies \u003cstring[]\u003e] [-OutputAssembly \u003cstring\u003e] [-OutputType \u003cOutputAssemblyType\u003e] [-PassThru] [-IgnoreWarnings] [\u003cCommonParameters\u003e]\r\n\r\nAdd-Type [-Name] \u003cstring\u003e [-MemberDefinition] \u003cstring[]\u003e [-CodeDomProvider \u003cCodeDomProvider\u003e] [-CompilerParameters \u003cCompilerParameters\u003e] [-Namespace \u003cstring\u003e] [-UsingNamespace \u003cstring[]\u003e] [-Language \u003cLanguage\u003e] [-ReferencedAssemblies \u003cstring[]\u003e] [-OutputAssembly \u003cstring\u003e] [-OutputType \u003cOutputAssemblyType\u003e] [-PassThru] [-IgnoreWarnings] [\u003cCommonParameters\u003e]\r\n\r\nAdd-Type -LiteralPath \u003cstring[]\u003e [-CompilerParameters \u003cCompilerParameters\u003e] [-ReferencedAssemblies \u003cstring[]\u003e] [-OutputAssembly \u003cstring\u003e] [-OutputType \u003cOutputAssemblyType\u003e] [-PassThru] [-IgnoreWarnings] [\u003cCommonParameters\u003e]\r\n\r\nAdd-Type [-Path] \u003cstring[]\u003e [-CompilerParameters \u003cCompilerParameters\u003e] [-ReferencedAssemblies \u003cstring[]\u003e] [-OutputAssembly \u003cstring\u003e] [-OutputType \u003cOutputAssemblyType\u003e] [-PassThru] [-IgnoreWarnings] [\u003cCommonParameters\u003e]\r\n\r\nAdd-Type -AssemblyName \u003cstring[]\u003e [-PassThru] [-IgnoreWarnings] [\u003cCommonParameters\u003e]\r\n",
                                         "DefaultParameterSet":  "FromSource",
                                         "OutputType":  "System.Type",
                                         "Options":  1,
                                         "Name":  "Add-Type",
                                         "CommandType":  8,
                                         "Source":  "Microsoft.PowerShell.Utility",
                                         "Visibility":  0,
                                         "ModuleName":  "Microsoft.PowerShell.Utility",
                                         "Module":  "Microsoft.PowerShell.Utility",
                                         "RemotingCapability":  1,
                                         "Parameters":  "System.Collections.Generic.Dictionary`2[System.String,System.Management.Automation.ParameterMetadata]",
                                         "ParameterSets":  "[-TypeDefinition] \u003cstring\u003e [-CodeDomProvider \u003cCodeDomProvider\u003e] [-CompilerParameters \u003cCompilerParameters\u003e] [-Language \u003cLanguage\u003e] [-ReferencedAssemblies \u003cstring[]\u003e] [-OutputAssembly \u003cstring\u003e] [-OutputType \u003cOutputAssemblyType\u003e] [-PassThru] [-IgnoreWarnings] [\u003cCommonParameters\u003e] [-Name] \u003cstring\u003e [-MemberDefinition] \u003cstring[]\u003e [-CodeDomProvider \u003cCodeDomProvider\u003e] [-CompilerParameters \u003cCompilerParameters\u003e] [-Namespace \u003cstring\u003e] [-UsingNamespace \u003cstring[]\u003e] [-Language \u003cLanguage\u003e] [-ReferencedAssemblies \u003cstring[]\u003e] [-OutputAssembly \u003cstring\u003e] [-OutputType \u003cOutputAssemblyType\u003e] [-PassThru] [-IgnoreWarnings] [\u003cCommonParameters\u003e] -LiteralPath \u003cstring[]\u003e [-CompilerParameters \u003cCompilerParameters\u003e] [-ReferencedAssemblies \u003cstring[]\u003e] [-OutputAssembly \u003cstring\u003e] [-OutputType \u003cOutputAssemblyType\u003e] [-PassThru] [-IgnoreWarnings] [\u003cCommonParameters\u003e] [-Path] \u003cstring[]\u003e [-CompilerParameters \u003cCompilerParameters\u003e] [-ReferencedAssemblies \u003cstring[]\u003e] [-OutputAssembly \u003cstring\u003e] [-OutputType \u003cOutputAssemblyType\u003e] [-PassThru] [-IgnoreWarnings] [\u003cCommonParameters\u003e] -AssemblyName \u003cstring[]\u003e [-PassThru] [-IgnoreWarnings] [\u003cCommonParameters\u003e]"
                                     },
                       "BoundParameters":  {

                                           },
                       "UnboundArguments":  [

                                            ],
                       "ScriptLineNumber":  88,
                       "OffsetInLine":  9,
                       "HistoryId":  1,
                       "ScriptName":  "C:\\Users\\scr8er\\Documents\\WindowsPowerShell\\Modules\\msal.ps\\4.37.0.0\\MSAL.PS.ps1",
                       "Line":  "        Add-Type -LiteralPath $RequiredAssembly | Out-Null\r\n",
                       "PositionMessage":  "At C:\\Users\\scr8er\\Documents\\WindowsPowerShell\\Modules\\msal.ps\\4.37.0.0\\MSAL.PS.ps1:88 char:9\r\n+         Add-Type -LiteralPath $RequiredAssembly | Out-Null\r\n+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~",
                       "PSScriptRoot":  "C:\\Users\\scr8er\\Documents\\WindowsPowerShell\\Modules\\msal.ps\\4.37.0.0",
                       "PSCommandPath":  "C:\\Users\\scr8er\\Documents\\WindowsPowerShell\\Modules\\msal.ps\\4.37.0.0\\MSAL.PS.ps1",
                       "InvocationName":  "Add-Type",
                       "PipelineLength":  0,
                       "PipelinePosition":  0,
                       "ExpectingInput":  false,
                       "CommandOrigin":  1,
                       "DisplayScriptPosition":  null
                   },
"ScriptStackTrace":  "at \u003cScriptBlock\u003e, C:\\Users\\scr8er\\Documents\\WindowsPowerShell\\Modules\\msal.ps\\4.37.0.0\\MSAL.PS.ps1: line 88\r\nat \u003cScriptBlock\u003e, C:\\Users\\scr8er\\Documents\\WindowsPowerShell\\Modules\\msal.ps\\4.37.0.0\\MSAL.PS.psm1: line 39\r\nat \u003cScriptBlock\u003e, \u003cNo file\u003e: line 1",
"PipelineIterationInfo":  [

                          ],
"PSMessageDetails":  null

}