Powershell Get-Hash Function

Here’s a function you can use in Powershell to calculate the MD5 hash of a file. This is not originally written by myself, and have since lost the original source for the function. Nonetheless, it is still incredibly useful.