I am trying to figure out the syntax for isinsubnet. I curently have

$IPAddress=@IPADDRESS0
$NetworkID='172.28.54.0'
$SubnetMask='255.255.254.0'
if IsInSubnet($IPAddress,$NetworkID,$SubnetMask)

But I need to add about 5 subnets and then write a script to check which subnet the useris in and run a script off it? What would the syntax be?

If $Answer=?

Thanks