Automate SQL Server install and restore DB
A great choice is dbatools. They have a command (among many, many others) that can help you with this:

Restore-DbaDatabase

An example,

Restore-DbaDatabase -SqlServer server1\instance1 -Path \\server2\backups\$


It can do a lot more complicated stuff, too! Check out the documentation for more info.