Powershell Scripting TutorialIntroduction Tools required for Powershell First Powershell script Interacting with userSpecial characters in Windows Powershell scriptingArrays String manipulation Conditional statements Looping statements Passing arguments Passing named arguments Exit status of the script Writing functions
Arrays in windows powershell scriptingWe can create arrays using below syntax.
Use below syntax to access first element in an array.
$cities = @(“Brisbane”,”Perth”,”Sydney”)
Use below syntax to access last element in an array.
To add an element in an array, you can use below command.
Below image shows how you can work with arrays in Windows Powershell.
$cities = $cities + “Hobart”
Web development and Automation testing