There is an error in the script in the AddPage() Function. When more then two pages are added to the document, the script continues add object to page two instead of moving to page 3, 4, 5, etc... this fixes the problem
Bad Code:
Code:
$pagObj = $pagsObj.Item(2)


Working Code
$pagObj = $pagsObj.Item($PageCnt)