Is the following function the best way to identify whether the user is an Administrator or not?

IF INGROUP ( "\\@WKSTA\Administrators" ) = 2
$USRTYP= "ADMINSTRATOR"
ELSE
$USRTYP= "USER"


Is there any other method or function?