function Disconnect-GpfsServer { [CmdletBinding()] param() if (-not $script:GpfsSession) { Write-Warning 'No active GPFS session.' return } $server = $script:GpfsSession.Server $script:GpfsSession = $null Write-Host "Disconnected from GPFS server: $server" -ForegroundColor Yellow }