Move FSMO Roles via Powershell

Check roles :
Get-ADForest domain.fqdn | Format-Table SchemaMaster,DomainNamingMaster
Get-ADDomain domain.fqdn | format-table PDCEmulator,RIDMaster,InfrastructureMaster

Move roles :
Move-ADDirectoryServerOperationMasterRole -Identity DC1 -OperationMasterRole PDCEmulator
Move-ADDirectoryServerOperationMasterRole -Identity DC1 -OperationMasterRole RIDMaster
Move-ADDirectoryServerOperationMasterRole -Identity DC1 -OperationMasterRole SchemaMaster
Move-ADDirectoryServerOperationMasterRole -Identity DC1 -OperationMasterRole DomainNamingMaster
Move-ADDirectoryServerOperationMasterRole -Identity DC1 -OperationMasterRole InfraStructureMaster

Check roles again :
Get-ADForest domain.fqdn | Format-Table SchemaMaster,DomainNamingMaster
Get-ADDomain domain.fqdn | format-table PDCEmulator,RIDMaster,InfrastructureMaster