분류용 상위 폴더 없이 실제 문법·함수 이름을 번호순으로 배치했습니다. 폴더에서 README와 실행 파일을 바로 확인하세요.
PowerShell 7에서 pwsh -NoProfile -File ./example.ps1로 실행합니다. 입력 장은 실행 후 값을 입력합니다.
| 번호 | 문법·함수 | 설명 |
|---|---|---|
| 00 | operator | 산술·대입·증감 연산자 |
| 01 | Write-Output | 출력 — Write-Output과 문자열 형식 |
| 02 | Read-Host & ReadLine | 입력 — Read-Host와 ReadLine |
| 03 | if & elseif & else | if / elseif / else |
| 04 | switch | switch |
| 05 | for | for |
| 06 | foreach | foreach |
| 07 | while | while |
| 08 | do & while & until | do / while / until |
| 09 | break | break |
| 10 | continue | continue |
| 11 | function & param | 함수와 매개변수 검증 |
| 12 | return & TryParse | 타입 변환·함수 출력·배열 |
| 13 | array & hashtable | 배열과 해시 테이블 |
| 14 | variable & type | 변수, 타입, null |
| 15 | string & format | 문자열, 보간, here-string |
| 16 | comparison & logical operator | 비교·논리·비트 연산자 |
| 17 | contains & like & match | 포함·와일드카드·정규식·null |
| 18 | comparison operator | 연산자와 조건문 |
| 19 | PSCustomObject & Where-Object | 객체 파이프라인 |
| 20 | try & catch & throw | 예외와 오류 스트림 |
| 21 | Get-Content & Set-Content & Join-Path | 경로와 파일 입출력 |
| 22 | ConvertFrom-Json & Export-Csv | JSON과 CSV 변환 |
| 23 | LASTEXITCODE & native command | 외부 프로그램과 종료 코드 |
| 24 | Import-Module & scope | 모듈, 범위, 재사용 |
| 25 | ShouldProcess & WhatIf | WhatIf와 검증 가능한 자동화 |
| 26 | pwsh & Get-Command | PowerShell 실행과 도움말 |