powershell - Test-Path

sample code

# ファイルの存在確認
PS> Test-Path -path "./aaa.txt" -PathType Leaf

# フォルダの存在確認
PS> Test-Path -path "./dir_aaa" -PathType Container