public override void ExecuteCmdlet() { CreatePSResourceParameters parameters = new CreatePSResourceParameters() { Name = Name, ResourceGroupName = ResourceGroupName, ResourceType = ResourceType, Location = Location, ParentResource = ParentResource, PropertyObject = PropertyObject, Force = Force.IsPresent, ConfirmAction = ConfirmAction, ApiVersion = ApiVersion, }; WriteObject(ResourcesClient.CreatePSResource(parameters)); }