I\'m looking for a feature comparable to Python interactive shell\'s \"_\" variable. In PowerShell I want something like this:
> Get-Something # this returns
You can also print the result of the command and capture the output object(s) using the OutVariable parameter, later on then use $anObj to display the variable content.
Get-Something -OutVariable anObj