To be honest I don’t know!

I got the code from the Best Practices section of the Kixtart FAQ & How to’s!
It reads: -

$admin = ingroup('@wksta\'+sidtoname('S-1-5-32-544'))-1+@INWIN
Is the Current logged in user an Admin?

So I thought I found the code I was looking for…