PowerShell Fundamentals

Variables Collections and Conditions

Use PowerShell variables, arrays, hashtables, comparisons, and collection pipelines with visible types and results.

Beginner14 min read
PowerShell Fundamentals lessonAutomation foundationsPractice

UNTIMED COACHING

Practice before the pressure

Use feedback to correct the model, not merely memorize an option position.

GUIDED PRACTICE

Practice the lesson questions

Answer normal lesson questions without a timer. Every answer includes an explanation, and incorrect answers can be tried again before continuing.

CONCEPT MODELS

See the lesson as a system

Use these visual guides to connect the key ideas before answering the questions.

Map the program in Variables Collections and ConditionsPlace powershell variables, array collections, hashtable mapping, and comparison operators in distinct execution roles.
Map the program in Variables Collections and ConditionsAn execution map connects input, decision, execution, and output roles to four concepts from variables collections and conditions.
Input modelPowerShell variables
Decision ruleArray collections
Execution stepHashtable mapping
Output evidenceComparison operators
Test Collection pipeline safelyConnect collection pipeline with a starting command, expected result, and explicit safety boundary.
Test Collection pipeline safelyA safe programming check connects collection pipeline with its command, result, and boundary.
Concept focusCollection pipeline
Starting commandRun a three-item filter and transform
Expected resultOutcome for collection pipeline
Safety boundaryNested script blocks can hide state changes