Scripts/Helpers/Get-PolicyResourceProperties.ps1 (12 lines of code) (raw):
function Get-PolicyResourceProperties {
[CmdletBinding()]
param (
$PolicyResource
)
if ($PolicyResource.properties) {
return $PolicyResource.properties
}
else {
return $PolicyResource
}
}