Hi @Rathod, Shashi ,
Please check your error log for more information.
The error may be related to the .NET framework. .NET 4.0 is a requirement for SQL Server 2012, but .NET framework is not included in the SQL Server Express media, before you install, please check your .NET framework and install.
Someone is having the sane problem as you because the command is not written correctly, please check that your command. Like using the /Q or /QS must include the /IACCEPTSQLSERVERLICENSETERMS parameter.
https://learn.microsoft.com/en-us/sql/database-engine/install-windows/install-sql-server-from-the-command-prompt?view=sql-server-ver15