Endpoint in new-udgrid not load variable

Hi all.

I have a code that is working correctly in version 2.3.2. I am migrating to version 2.5.2 and I have encountered this problem. Maybe it’s a change in functionality, but I don’t know.
To simplify the code I will use this example. The endpoint is not able to load the variable, previously it did. Is there any way I can do it? Thanks.

New-UDPage -Name "Deploy new VM" -Icon windows  -Content {
    New-DscDashboardCustomHeader -Text "Deploy new VM" -icon 'windows'
    
    $path_scripts= "$PSScriptRoot\..\..\Scripts\deploy"
    $path_logs= "$PSScriptRoot\..\..\..\DscLogs\DscDashboard\Deploynodes"
    $idjob="deploy"

New-UDCard -Title "Log" -Content {
            New-UDGrid -Title " " -Headers @("Time","VMname","Event","Description") -NoPaging -Properties @("Time","VMname","Event","Description") -Endpoint {
                
                **Import-Csv -Path "$path_logs\$idjob.log" | Out-UDGridData**
            } -AutoRefresh -RefreshInterval 5
            New-UDButton -Text "clear" -Icon arrow_left -OnClick {Invoke-UDRedirect -Url "/Deploy-new-VM"}
            }
}

Note: Also I have try to use -argumentlist, but it not worked.