Your function Get-Filehash overwrites a builtin Powershell function. This causes issues with some functions (in my case New-DSCCheckSum).