How to create a Directory including some Subdirectories using PowerShell
This article has not been completed yet. However, it may already contain helpful information and therefore it has been published at this stage.
Introduction:
# Path for Databasefile
New-Item -Path "D:\Program Files\Microsoft SQL Server\MSSQL15.MSSQLSERVER\MSSQL\Data" -ItemType Directory -Force
# Path for Logfile
New-Item -Path "L:\Program Files\Microsoft SQL Server\MSSQL15.MSSQLSERVER\MSSQL\Data" -ItemType Directory -Force
Conclusion:
Sources: