Edit: I extracted the functions I needed - Add and Delete - and made a much smaller file from the functions inside (attached here).
But I'd still like to fix the command line issue someday, this is a great effort by zorphnog for those of us who have to admin local GPOs for deployed systems!
H...