Amazon web services – Why does AWS Tools for Powershell ignore -ErrorAction SilentlyContinue?
I want to get $null from the Get-IAMUser command in case the user does not exist. I investigated using -ErrorAction SilentlyContinue but it seems to be ignored. Line | 3 | if ($null -ne (Get-IAMUser -UserName SomeUserName)) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |…