Newbie question, is there a way to show the content of a variable when it is created?
e.g. Create a variable that contains an array with all distribution groups and display its content on the console
$Groups = Get-Distribution
I was wondering something like the Tee-Object (shows on the console and saves the result on a file) but without creating a file…