Creating "Microsoft SharePoint Foundation Subscription Service" in SharePoint 2016 Server by using Power-shell command but it stuck at below line and not responding.
$ServiceApplication = New-SPSubscriptionSettingsServiceApplication –ApplicationPool $AppPoolName –Name $ServiceAppName –DatabaseName $DatabaseName –DatabaseServer $DatabaseServer
When we check the status of Services in Central Admin > Manager Services its showing status "Starting".
While status showing as "Starting" we can see the Database is already created in DB server. we are using SharePoint 2016 and want to create Apps for SharePoint. Next step is to configure App Management Service Application. Not sure if App Management and Subscription Services are depending on each other.

Can you try to delete the existing service application and create using below Powershell Script
In this please provide $accountName in the variable and share me the results
Powershell
===========================