I am getting the following error...
The type initializer for 'System.Management.Automation.PSCredential' threw an exception.
The term 'Get-AdmUser' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
My powershell scripts have been working for months and then suddenly... BOOM! They started throwing this error.