PowerShell for Programmers: Basic Syntax – Variables, Objects, and Data Types
Variables
Variables in PowerShell are going to be a bit different than they are for you in most languages.
To start out the conversation, the basic way to create a variable is just by using a “$” and an “=”, but there are cmdlets and other ways to generate them.


