Mode:
Duration:
1
2
3
$numbers = 1..10
$squares = $numbers | Where-Object { $_ % 2 -eq 0 } | ForEach-Object { $_ * $_ }
Write-Host $squaresCoding works best on desktop or with an external keyboard.
$numbers = 1..10
$squares = $numbers | Where-Object { $_ % 2 -eq 0 } | ForEach-Object { $_ * $_ }
Write-Host $squaresCoding works best on desktop or with an external keyboard.
Square even numbers using array operations.
$numbers = 1..10
$squares = $numbers | Where-Object { $_ % 2 -eq 0 } | ForEach-Object { $_ * $_ }
Write-Host $squaresPowerShell is a cross-platform task automation and configuration management framework, combining a command-line shell, scripting language, and object-based pipeline built on .NET. It is widely used for DevOps, system administration, cloud automation, and enterprise workflows.
Origin & Creator
Created by Microsoft, originally released in 2006 as 'Monad' before becoming Windows PowerShell, then PowerShell Core (open-source).
Industrial Note
PowerShell dominates enterprise automation across Windows Server, Azure, Active Directory, Intune, Office 365, and hybrid-cloud DevOps environments.