The account that you use needs to have the "logon as service" right. If you want to do this strictly from a command line, then my preferred solution would be the ntrights program from the Windows 2003 Resourse Kit. Unfortunatly Microsoft has chosen to remove that download, so you will need another solution.
Here's one.
https://blakedrumm.com/blog/set-and-check-user-rights-assignment/
Download Get-UserRights and Set-UserRights.
$user = "YourDomain\YourUser"
$pswd = "password"
$svc = "YourServiceName"
Set-UserRights.ps1 -AddRight -UserRight SeServiceLogonRight -Username $user
sc.exe config $svc obj= $user password= $pswd
Start-Service -Name $svc