Ok, I had to walk away from this for a minute because my brain is in overload. I've read through your posts and I think the easiest would be to create the array of all our servers, I have to compile a list anyway if I want to move them to containers seperate containers, then use the IsInArray UDF to see if there's a match and if there's not issue the command.

So with the UDF's NetView2, Ping, and IsInArray run this code:
Code:
$SERVERS = 'server1','server2','server3, 'etc'
FOR EACH $Computer In NetView2(@ldomain)
IF $Computer
IF PING($Computer,0) AND IsInArray($Servers,$Computer)=0
SHUTDOWN ($Computer,"Your Computer is being shutdown to install an application", 45, FORCE)
ENDIF
ENDIF
NEXT

Exit