Since there's only one subscription, you could do this without the pipeline:

```
    $name = (Get-AzureSubscription -Default).SubscriptionName
```