it really works -- setting $ErrorActionPreference is local to the function