Import Excel files into SQL Server

Recently I was given a nice task: can you import some Excel files into a SQL Server database. Luckily, using dbatools and ImportExcel this was an easy task. The files were named <schemaName>.<tableName>.xlsx. I made sure all needed schemas were available in my database, and then I used the following script to import the files.