moved function declaration earlier in the script so I can run it outside of powershell ISE
Merge branch 'master' of https://github.com/samshteinman/powershellscripts