Add a Pause or Delay
1. Problem
You want to pause or delay your script or command.
2. Solution
To pause until the user presses ENTER, use the Read-Host cmdlet:
       PS >Read-Host “Press ENTER”
       Press ENTER:
To pause until the user presses a key, use the ReadKey() method on the $host object:
       PS >$host.UI.RawUI.ReadKey()
To pause a script for a given amount of [...]
Add Custom Methods and Properties to Objects
1. Problem
You have an object and want to add your own custom properties or methods (members) to that object.
2. Solution
Use the Add-Member cmdlet to add custom members to an object.
3. Discussion
The Add-Member cmdlet is extremely useful in helping you add custom members to individual objects. For example, imagine that you want to create a report [...]
Types and Objects
1. Problem
You have an instance of an object and want to know what methods and properties it supports.
2. Solution
The most common way to explore the methods and properties supported by an object is through the Get-Member cmdlet.
To get the instance members of an object you’ve stored in the $object variable, pipe it to the Get-Member [...]

