Update BAMex.ps1

Minor bug fixes in export to pst function