Apps/Get-NavimaticsWinFSP.ps1

function Get-NavimaticsWinFSP {
    <#
        .SYNOPSIS
            Get the current version and download URL for WinSFP.

        .NOTES
            Site: https://winfsp.dev/rel/
            Author: Alex Harvey
            GitHub: @alex-harvey-z3q
    #>

    [OutputType([System.Management.Automation.PSObject])]
    [CmdletBinding(SupportsShouldProcess = $false)]
    param (
        [Parameter(Mandatory = $false, Position = 0)]
        [ValidateNotNull()]
        [System.Management.Automation.PSObject]
        $res = (Get-FunctionResource -AppName ("$($MyInvocation.MyCommand)".Split("-"))[1])
    )

    # Pass the repo releases API URL and return a formatted object
    $params = @{
        Uri          = $res.Get.Uri
        MatchVersion = $res.Get.MatchVersion
        Filter       = $res.Get.MatchFileTypes
    }
    $object = Get-GitHubRepoRelease @params
    Write-Output -InputObject $object
}