Private/Get-ServiceName.ps1
function Get-ServiceName { [CmdletBinding()] param( ) if ($IsWindows) { return ((Get-Location) -split '\\')[-1] } else { return ((Get-Location) -split '/')[-1] } } |
function Get-ServiceName { [CmdletBinding()] param( ) if ($IsWindows) { return ((Get-Location) -split '\\')[-1] } else { return ((Get-Location) -split '/')[-1] } } |