Trying to figure out how to color certain filters within an array for ease of reading on console. In other words, as the console progress forward, if "[Behaviour] OnPlayerJoined" appears, color that text green.
$filters = @(
################## FILTERS ##################
"[Behaviour] OnPlayerJoined",
"[Behaviour] OnPlayerLeft ",
"[API] Received Notification: <Notification"
#############################################
)
mode 300
$host.UI.RawUI.ForegroundColor = "White"
$host.UI.RawUI.BackgroundColor = "Black"
cd C:\Users\$env:UserName\AppData\LocalLow\VRChat\VRChat
$taco = Get-ChildItem -Attributes !Directory . | Sort-Object -Descending -Property LastWriteTime | select -First 1
Get-Content -Path $taco.name -Wait | Select-String -Pattern $filters -SimpleMatch

