I have had the problem to set the SharePoint Sevice Account of "SharePoint Server Search" to a special user account during a automatic setup.
In other words: I want to automate this step:
Central Administration -> Security -> Configure Service Accounts
There is no PowerShell command as far as I can see.
You can use this script for this job: