Let’s say I want to create the following directories: C:/Program Files/MiKTeX 2.9/tex/latex/math using PowerShell because, as you may guess it, it’s a Windows directory structure.

Here’s the command to do that:

PS C:\> New-Item -Type Directory -Path "C:/Program Files/MiKTeX 2.9/tex/latex/math"

The command seems simple enough. So why did I create this post? Well, guess what? I have to Google this out for the 3rd time this month. From now, if I need to look it up again, I can just go to https://blog.khmersite.net/tags/powershell/.

Reference: