For working with the values in Field use this code:. Edited for got dynamically List fields and items with all fields. It returning system fields too, but they are empty here. Hope it helps in some way. I am still using classic SPO commands.
Write-Host "Please enter URL of the SharePoint site:"
$url = Read-Host
Write-Host "Please enter List Name of the SharePoint site:"
$ListName = Read-Host
Connect-PnPOnline -Url $url -UseWebLogin
$Fields = Get-PnPField -List $ListName
$global:FieldsList = ""
foreach($Field in $Fields)
{
$global:FieldsList = $global:FieldsList + $Field.InternalName + ','
}
$Items = (Get-PnPListItem -List $ListName -Fields "Title","StartDate","EndDate"$global:FieldsList).FieldValues
foreach($Item in $Items)
{
Write-Host $Item.Title -ForegroundColor Yellow
#Hereforeach($Field youin can$Fields)
list the values or{
work with them
$Item Write-Host $Field.StartDateInternalName -ForegroundColor Yellow
$Item Write-Host $Item[$Field.EndDateInternalName]
}
}