Initialize-AllCSOMObjectCollections.ps1

##############################
#.SYNOPSIS
#Short description
#
#.DESCRIPTION
#Long description
#
#.PARAMETER CSOMCollection
#Parameter description
#
#.EXAMPLE
#An example
#
#.NOTES
#General notes
##############################
function Initialize-AllCSOMObjectProperties () {
    [cmdletbinding()]
    Param(
        [Parameter(Mandatory=$true)]
        $CSOMCollection
    )
    Begin{
        $Properties = $CSOMObject | Get-Member -MemberType Properties
    }
    Process{
        Foreach ($p in $Properties){
            Initialize-SPOCSOMCollections $CSOMCollection.($p.Name)
        }
    }
}