Without Import-Module PSWSMan the native WSMan library isn't registered and New-PSSession hangs/fails silently. Import guarded by $IsWindows so Windows PS 5.1 is unaffected.
Without Import-Module PSWSMan the native WSMan library isn't registered and New-PSSession hangs/fails silently. Import guarded by $IsWindows so Windows PS 5.1 is unaffected.