The DSRM password cannot include special symbols like "$" or "&". The Forest Recovery Agent does not escape the special characters like "$" and "&" properly and assumes there's a variable or an unsupported character in the password string.
You may observe a similar or same error as the following during the restore process:
controller.rootdom.local 24.05.2017 09:58:39 Error The following operation has failed: Reinstall Active Directory Domain Services.
Details: At line:1 char:100
+ ... nName rootdom.local\Administrator -adminPasswordString This&That -d ...
+ ~
The ampersand (&) character is not allowed. The & operator is reserved for
future use; wrap an ampersand in double quotation marks ("&") to pass it as
part of a string.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : AmpersandNotAllowed.
The same issue can occur with the Domain Access password. It is used to provide the Credentials parameter for the Install-ADDSDomainController PowerShell cmdlet. Please note that the "`" character results in the same issue when used in passwords.