To create your own classes in PowerShell, you have two options. You can use either .NET with C# to create your class, or you can use the PowerShell class language element.
Both have their pros and cons, which we will see in the following recipe.
To create your own classes in PowerShell, you have two options. You can use either .NET with C# to create your class, or you can use the PowerShell class language element.
Both have their pros and cons, which we will see in the following recipe.
Install PowerShell Core and start an editor of your choice, for example, Visual Studio Code, with PowerShell and C# extensions.
Perform the following steps: