Open Command Prompt as an administrator, and then try the following command:
For SQL Server 2019:
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\Extensions\Microsoft\SQLDB\DAC\150\SqlPackage.exe" /a:Import /sf:"[LOCATION]\AdventureWorks2008R2.bacpac" /tcs:"Data Source=[SERVER_NAME];Initial Catalog=[DATABASE_NAME]" /p:DatabaseEdition=Premium
For SQL Server 2017 or previous version: (Note that 140 for SQL Server 2017, 130 for SQL Server 2016 ...)
"C:\Program Files (x86)\Microsoft SQL Server\140\DAC\bin\SqlPackage.exe" /a:Import /sf:"[LOCATION]\AdventureWorks2008R2.bacpac" /tcs:"Data Source=[SERVER_NAME];Initial Catalog=[DATABASE_NAME]" /p:DatabaseEdition=Premium
[SERVER_NAME] = Server name, i.e., localhost if your SQL server is on the current server
[DATABASE_NAME] = Name of database you want to ccreate
[LOCATION] = Directory where file .bacpac is located , i.e., C:\Test