This is a demo to show the usage of class in PowerShell.
- Download the store the PowerShell script in your local machine.
- Open a PowerShell Terminal.
- Navigate to the location of the script.
- Execute the below command.
.\ClassDemo.ps1
Name: Jon Doe Age:23
Name: Rahul Roy Age:58