Solved by these commands
$appPoolService = New-SPServiceApplicationPool -Name SettingsServiceAppPool -Account $manaccount
$appService = New-SPSubscriptionSettingsServiceApplication -ApplicationPool $appPoolService -Name SettingsServiceApp -DatabaseName 10.0.4.10
$proxyService = New-SPSubscriptionSettingsServiceApplicationProxy -ServiceApplication $appService