Help with SQLPSX output for replication
In the $scriptingoptions collection, you are explicitly setting on the Queue reader agent export.  Change this line:

$scriptOptions.IncludeCreateQueuereaderAgent = $true


to

$scriptOptions.IncludeCreateQueuereaderAgent = $false


If you want help with the module you are using, you need to show the code you are using to generate the scripts.