An interactive PowerShell script that demonstrates secure input handling, enum parsing, hints, attempt tracking, and timing—useful foundations for defensive scripting in cybersecurity labs.
pwsh ./ColorGuessGame.ps1
## Features
Validates user input via [System.Enum]::TryParse
Commands: List colors, Hint, Wrong guesses, Quit
Tracks attempts and total time
Handles “Dark*” color hint logic (e.g., DarkG for DarkGray)
## Cybersecurity Relevance
Demonstrates defensive scripting and input validation
Builds automation and logic-control skills
Serves as a base for secure PowerShell tools