process{if($ClientContext-eq$null){throw"Cannot bind argument to parameter 'ClientContext' because it is null."}$Creation=New-ObjectMicrosoft.SharePoint.Client.ContentTypeCreationInformation$Creation.Name=$Nameif($PSBoundParameters.ContainsKey('Group')){$Creation.Group=$Group}if($PSBoundParameters.ContainsKey('ParentContentType')){if(-not$ParentContentType.IsPropertyAvailable('Id')){Invoke-ClientContextLoad`-ClientContext$ClientContext`-ClientObject$ParentContentType`-Retrieval'Id'}$Creation.ParentContentType=$ParentContentType}$ClientObject=$ParentObject.ClientObject.ContentTypes.Add($Creation)$ClientObject.Description=$Description$ClientObject.Update($false)Invoke-ClientContextLoad`-ClientContext$ClientContext`-ClientObject$ClientObject`-Retrieval$RetrievalWrite-Output$ClientObject}