PDM console macro to batch check in files

I found a macro on CodeStack that would batch check in all checked out files in a specified Vault.  I have modified it to only add the files to the list if it is the current logged in user.  Unfortunately it fails with a "parameter is incorrect" error at the "batchUnlockUtil.AddSelection(vault, selItems)" line.  I have tried working with my VAR but they have not had any luck figuring out the issue.  I am hoping one of you API gurus can help me fix this issue.  The code I am using is attached.

SolidworksApi/macros