extract the codespace you are running on
> gh cs view --json name | ConvertFrom-Json | select -ExpandProperty name
fuzzy-waffle-v6v6gqgj7vjx3x7w5
This will allow to pipe this command to Remove-CodeSpace
Get-Codespace | Remove-Codespace
Equivalent to
gh cs delete -c $(gh cs view --json name | ConvertFrom-Json | select -ExpandProperty name)