3 ways to Store & Display results in/from a Powershell variable at the same time

In order to write less code or to write better one-liners in Powershell, I often find one of these techniques useful, and let me know if you feel the same. Using -OutVariable parameter Variable squeezing Its a shame many of us ( including myself 😉 ) were not aware of this for quite long. Using Tee-Object Cmdlet… Read More 3 ways to Store & Display results in/from a Powershell variable at the same time

Command discovery in Powerhell with $Env:Path

I often see people wondering that some commands/applications launch from Windows Run (Windows Key+R) but when I try them in PowerShell console it throws an error, I know this gets frustrating at times. For example, when I try to run commands like Excel or WinWord my PowerShell console throws errors, but When I launch Notepad it just works… Read More Command discovery in Powerhell with $Env:Path