powershell - New-Item

sample code

# ディレクトリを作成
New-Item -ItemType Directory "mydir"

# 再帰的にディレクトリを作成
New-Item -ItemType Directory "a1\a2\a3"

# ファイルを作成
New-Item -ItemType File "test1.txt"

# ファイルを作成+内容
New-Item -ItemType File "test2.txt" -Value "add content"