I have a nice string that looks like this:
Get-Azsubscription | ForEach-Object {"$($a).) $($_.Name)"; $a++}
It allows me to count how many subscriptions I have on Azure and it adds a number to it. The problem is that the counter starts from 0, which is in my case .) :
How to make that counter start to count from 1 and not from 0?

The
ForEach-Objectcmdlet takes an additional-Beginblock you can use to initialize any variable you want to use: