Get-Variable retrieves a session variable's value by name. In cross-platform functions, it checks IsLinux, IsMacOS, or IsWindows while preserving a seam for tests that cannot replace read-only variables directly. section 14.1.2
Select an operating-system branch
Use Get-Variable with -ValueOnly before running platform-specific commands; the function can then collect Linux system information or warn when macOS support is unavailable. section 14.1.2
