Is there an automatic variable that tells me the results of the last run command on Powershell? for example I run this command to migrate mailboxes:
New-MoveRequest -Identity $m[$d] -TargetDatabase $TargetDatabase -WhatIf
I want the results that are outputted on the powershell screen to be stored in a variable that I can then use to output in a textbox I created using wpf.
thank you in advance for your help.