I use this command in Powershell:
(Get-Content -Delimiter " " -Head 1 .\myApp.exe.sha256).trim() -eq (Get-FileHash .\myApp.exe).Hash.toLower()
I must use this because my sha256 file contains hash and filename separated by space.