From what I know, PowerShell doesn\'t seem to have a built-in expression for the so-called ternary operator.
For example, in the C language, which supports the terna
PowerShell currently doesn't have a native Inline If (or ternary If) but you could consider to use the custom cmdlet:
IIf