title: Calculate directed broadcast address given IP address and subnet in PowerShell
body: <p>My goal is to calculate the directed broadcast address when given the IP and subnet mask of a host node. I know, sounds like homework. Once I reasoned through my task and boiled it down to this, I was amused with myself. Anyway, the solution will look something like the one in <a href="https://stackoverflow.com/questions/777617/calculate-broadcast-address-from-ip-and-subnet-mask">this question</a> I suppose, but I'm not a math major and my C sucks. I could do with a PowerShell (preferred) or C# example to get me going.</p>
  
  <p>thanks!</p>