Hello again
I found a solution.
Here is an old thead. But it still work.
https://community.checkpoint.com/t5/API-CLI-Discussion/Missing-API-possibility-to-set-vpn-community-...
Kim_Moberg has do it with a generic-object. And this is also working for the VPN Routing settings.
Here is my code via powershell
& $MGMTCLI set generic-object uid `
(& $MGMTCLI show vpn-community-star name ("VPNCommunity-" + $a.VPNComName) -f json -s $SessionID | ConvertFrom-Json).UID `
routeThroughCenter TO_OTHER_SATELLITE `
-f json -s $SessionID
For the VPN routing the routeThroughCenter must be set.
Values are
NONE --> To center only
TO_OTHER_SATELLITE --> To center and to other satellites through center
BY_DEFAULT --> To center or through the center to outher satellites, to Internet and other VPN targets
I hope it is helpful for some one
Matthias