Test-IPv4SameSubnet

This function determines if two IP addresses given in the ‘Address/Subnet’ or ‘Address/MaskLength’ format belong to the same subnet, i.e. are able to reach each others without going through the gateway.
If the subnet masks are different, the smaller subnet will determine the result.