Thomas W Marshall edited Revision 1. Comment: I wrote this function in a little over 4 hours. It is my first PowerShell function.