PSPowerShell · Lesson 1 of 8
Your First Script
PowerShell scripts have the .ps1 extension. The first thing you need to know: PowerShell works with objects, not just text. This changes everything.
PowerShell cmdlets (pronounced "command-lets") follow a Verb-Noun naming convention: Get-Process, Set-Item, Remove-File. They return objects with properties, not raw text. This is PowerShell's biggest differentiator from Bash.
◆ Note
PowerShell is case-insensitive. Write-Host, write-host, and WRITE-HOST all work. By convention, use PascalCase for cmdlet names (Write-Host) and camelCase for variables ($myVariable).
PowerShell is case-insensitive. Write-Host, write-host, and WRITE-HOST all work. By convention, use PascalCase for cmdlet names (Write-Host) and camelCase for variables ($myVariable).