PowerShell - Cross-Platform PowerShell
What will this script output on Windows PowerShell (not Core)?
if ($PSVersionTable.Platform -eq 'Windows') { 'Windows PowerShell' } else { 'Other PowerShell' }