Cmdlets/Export-SPNavigationReport/Export-SPNavigationReport.psm1

function Export-SPNavigationReport
{    
    param(
        [parameter(Mandatory=$True, position=0, HelpMessage="This output of this report will be a csv format")]
        [ValidateScript(
            {
                if($_.localpath.endswith("csv")){$True}else{throw "`r`n`'ReportFile`' must have a csv vile extension"}
            }
            )]
        [URI]$ReportFile,
        [Parameter(mandatory=$True, position=1, HelpMessage="Site Collection URL for which the summary report should be prepared")]
        [URI]$SiteURL
    )

    if($SiteURL)
    {
        $ReportData = Get-SPNavigationReport -SiteURL $SiteURL
        $ReportData | Export-Csv $ReportFile.LocalPath -Force -NoTypeInformation
    }
}