変数宣言の仕方
[string]$name="John" $name
if文のサンプル
[boolean]$foo=$true if($foo){ write-host "this is true!" }else{ write-host "this is false!" }