I think you should do this as Admin.
Create an array of $Users
Loop through the array:
Code:

For Each $User in $Users
; Do stuff
Next


Do (almost) the same as you are doing now, as administrator
the @USERID would become $User