Owlglass

PowerShell - Add a calculated property in Select-Object

Calculated Property in Select-Object

The proper syntax for forming the hash table:

1
Get-Service | Select-Object -Property @{Name = 'Name'; Expression = {$_.Name}}