public/Session/Remove-Session.ps1
using namespace System.Management.Automation using module '..\..\modules\Enums.psm1' using module '..\..\modules\Helper\DateTimeHelper.psm1' using module '..\..\modules\Session.psd1' function Remove-Session{ [CmdletBinding()] [Alias('rs')] param( [Parameter(ValueFromPipelineByPropertyName=$true, Mandatory=$true)][Alias('id')] [int] $sessionId ) [Session]::Recycle($sessionId) } |