Due to a strange decision in PowerShell, the true color compatibility is not shown in the TERM or COLORTERM env variable. microsoft/terminal#11057
my current work around is to just set these env variables before running the program but it would be nice to implement a check for a PowerShell terminal.