Variable

変数宣言の仕方

[string]$name="John"
$name
If

if文のサンプル

[boolean]$foo=$true
if($foo){
  write-host "this is true!"
}else{
  write-host "this is false!"
}