You can get it simply by using the Rendering Parameter
on the item.
Your script should be like this.
# Get your item by ID
$item = Get-Item -Path "master:" -ID "{B485F716-9E95-42E8-8DE0-844E988A1BDF}"
# Create a loop on all the renderings of the item.
foreach($itemRendering in Get-Rendering -Item $item -FinalLayout) {
# Get the rendering Parameters.
Get-RenderingParameter -Rendering $itemRendering | Format-Table -Auto
}
You will get the rendering parameters data with Style parameters also like this.
Name Value
---- -----
Navigation {848DFE42-2B13-430E-A0B9-89CE25730A06}
Transition {D4B706CC-7EEC-4DB9-A87D-123B29803490}
Timeout 2000
PauseOnHover 1
Reset Caching Options
GridParameters {908E2BC6-C110-4ED7-AF39-7EEACBB31A34}
Styles {C414B189-DAA3-4490-9B03-A7B6F4AC3A2C}|{F2A30C96-BC00-4CCD-BC1E-384744EE24C8}|{32E7E96A-17CD-4FDE-90D8-62A48B0D8BF5}
RenderingIdentifier
DynamicPlaceholderId 3
You will get the Styles
ID. Now update the above logic and use Get-Item
to get the field values on this item.
Hope this helps.