Just a quick thought looking at the error message
I get the impression that
$pBroadcast.GenerateAnnoucementFile
does not accept two arguments