Get-FileHash -Algorithm $ALGORITHM $FILE_PATH

The algorithm can be excluded (in which case SHA-256 is used). Lots of different hashing algorithms are supported — run help Get-FileHash to see a list.