Fix bug with System.Management.Automation.dll