PowerShell - Cross-Platform PowerShell
What will this PowerShell Core script output on a Linux system?
if ($PSVersionTable.Platform -eq 'Unix') { 'Cross-platform script running' } else { 'Windows script running' }