Howard, think we might have it ... you have a typo in your function prototype:

Function CreateADGroup ($Container, $GrpName, $GrpType, $SecurityEnabled, optional $Description, optional $sSAMAcctName)

specifically this parm:

$sSAMAcctName

think you have an extra "s" at the beginning, ja ?