During the process of learning to use Bash or sh, we learn to use the redirection operators, such as <, >, and >>. PowerShell works on redirection as well. However, the implementation of redirection is different in PowerShell.
Redirection in PowerShell mainly relies on streams, which are covered in a different chapter. For this recipe, we stick with the default stream, which is Success. This recipe covers different, simple redirections to help with basic administration.
Before we begin, let us understand that PowerShell is very different from Bash in terms of redirection, although it packs some minor similarities; similarities enough to make you not go away, but rather appreciate the flexibility of the object model and the uniformity of use.