This maybe true of other functions that create SharePoint service applications.
Issue:
If using database names that contain spaces, the function fails.
ex: if the service database name is "SharePoint Translation Services", the New-SPTranslationServiceApplication cmdlet will throw an InvalidArgument exception.
To fix:
Change this line:
```
-ServiceNewCmdlet "New-SPTranslationServiceApplication -DatabaseServer $dbServer -DatabaseName $translationDatabase -Default" `
```
with this:
```
-ServiceNewCmdlet "New-SPTranslationServiceApplication -DatabaseServer `"$dbServer`" -DatabaseName `"$serviceDB`" -Default" `
```
Issue:
If using database names that contain spaces, the function fails.
ex: if the service database name is "SharePoint Translation Services", the New-SPTranslationServiceApplication cmdlet will throw an InvalidArgument exception.
To fix:
Change this line:
```
-ServiceNewCmdlet "New-SPTranslationServiceApplication -DatabaseServer $dbServer -DatabaseName $translationDatabase -Default" `
```
with this:
```
-ServiceNewCmdlet "New-SPTranslationServiceApplication -DatabaseServer `"$dbServer`" -DatabaseName `"$serviceDB`" -Default" `
```