Fixing ErrorActionPreference and modifying the Import