Useful Powershell functions and snippets that I don't want to have to rewrite anymore.