private/stop/Stop-WindowsRemoteDesktop.ps1

function Stop-WindowsRemoteDesktop
{
    [CmdletBinding(PositionalBinding = $true)]
    param(
        [Parameter(Mandatory = $false)]
        [System.Diagnostics.Process] $Process
    )

    if ($Process)
    {
        Write-Host 'Stopping Windows Remote Desktop..' -ForegroundColor DarkGray -NoNewline

        Stop-Process -InputObject $Process -Force -ErrorAction SilentlyContinue

        Write-Host 'Done.' -ForegroundColor DarkMagenta
    }
}