variables

$name = "0x1RIS"
$port = 443
$ports = 22, 80, 443

Variables are not strings with a dollar sign They are .NET objects The shell figures out the type from the value

Arrays

$ports = @(22, 80, 443)
$ports[0]

@() makes an array explicit A comma list becomes an array automatically That implicit behaviour is convenient and occasionally surprising

Hashtables

$map = @{
    Host = "local"
    Port = 443
}
$map["Port"]

Access by key or by property name That flexibility is why hashtables show up in configuration scripts

Automatic conversion

PowerShell converts between types when it can A string becomes an int when the operation needs an int That saves typing and hides bugs Use explicit casts when the type matters

Next

The pipeline in 03 pipeline

Test this in your lab first

Posted