Public/ps1/Configuration/Service/Stop-ApprxrService.ps1

function Stop-ApprxrService {
    <#
    .SYNOPSIS
        Stops the Start-Apprxr Windows service.
    .DESCRIPTION
        Stops the Start-Apprxr service using standard Windows service management cmdlets.
    #>

    [CmdletBinding()]
    param()
    $serviceName = 'ApprxrService'
    Stop-Service -Name $serviceName -Force
    Write-Host "Service '$serviceName' stopped." -ForegroundColor Yellow
}