public/Get-BadServices.ps1

function Get-BadServices {
    <#
    .SYNOPSIS
        Get services which are configured to auto-start but are currently stopped
    .DESCRIPTION
        Get services which are configured to auto-start but are currently stopped
    .PARAMETER (none)
    .EXAMPLE
        Get-BadServices
    .LINK
        https://github.com/Skatterbrainz/helium/blob/master/docs/Get-BadServices.md
    #>

    [CmdletBinding()]
    param()
    Write-Host "The following services are configured for Automatic start, but are not currently running:" -ForegroundColor Cyan
    Get-Service -ErrorAction SilentlyContinue | Where-Object {$_.StartType -eq 'Automatic' -and $_.State -ne 'Running'}
}