I am trying to do next:
$a = $(Get-ChildItem -Path path | Select-Object -Property creationtime, name, size )
$a.Name
$a.CreationTime
$.Size
I am getting an error.
When I select single attribute - no problem.
Is there a way to select whole object into variable $a
?