Splatting

say it: “SPLAT-ing” /ˈsplætɪŋ/

Passing a hashtable of parameters to a command with `@`.

What is Splatting?

Splatting passes a hashtable of parameters to a command with @, keeping long commands readable.

$copy = @{
    Path        = '.\photos'
    Destination = 'D:\Backup'
    Recurse     = $true
}
Copy-Item @copy

Level: Journeyman · More PowerShell terms at this level

Updated