GetExecutablePath.ps1

GetExecutablePath()
  {
    $exists = Test-Path -Path ([DlAudioFileInfo]::ffprobeExecutable)
    if (!$exists)
    {
      throw "ffprobe.exe not found: $([DlAudioFileInfo]::ffprobeExecutable) does not exist. Download from https://ffbinaries.com/downloads."
    }
        
    return [DlAudioFileInfo]::ffprobeExecutable
  }