MSH introduces several so-called ubiquitous parameters
that are available throughout the command shell. Three important ones,
-Confirm, tell you exactly what's going on, tell you what should be going on and check whether you'd like it to be going on (respectively) when running any MSH command. They can be used to get a better picture of how a script will perform before it is run, allowing you to verify the actions before they are performed.
Let's take a look at some of these safeguards in action.
get-childitem cmdlet, it's an easy task to walk ...