I am looking for powershell script to get datasource item of a rendering. Right now I am getting path of datasource item. But since I am using SXA, I expect few paths like, local:/Data/Hero Banner Also I could not find any relevant property of RenderingItem object that could suffice my need. Any help is appreciated. Thanks in advance.
$itemRenderings = Get-Rendering -Item $item -Device $defaultLayout -FinalLayout
foreach ( $renderingItem in $itemRenderings ){
$renderingItem.Datasource
}