To my understanding you will require the ENDIF statement for every IF command used.

IF INGROUP("DOMAIN ADMINS")
NET USE J: .....
ENDIF