My good friend Tom has a very cool solution too, but this script was published in SSC in first time I guess in 2008 or 2009 (you can check by the code still using -trap- for error handling.. I~ve wrote to PowerShell 1.0). I am not sure why it was published again and with 2016 date
$hell your Experience !!!