Simple Module that helps creating an ErrorRecord
The function New-ErrorRecord will create an error record according to your parameters. -Exception will offer you all locally available exception, so you don't have to look for appropriate exceptions
Install-Module ErrorRecord
New-ErrorRecord -Message MyError -Exception System.IO.FileNotFoundException -Category ObjectNotFound