I'm prompting for an optional action (amidst other output) like this:
$question = "Create Software Inventory Report? [y|n]" $answer = "" while ($answer -notmatch "[y|n]") { $answer = Read-Host $question -ForegroundColor Yellow }
Is there any way to apply -ForegroundColor to $question text?
As it is now, I get monochrome output that looks like this:
Create Software Inventory Report? [y|n] -ForegroundColor Yellow: