Public/Tools/Stop-ASBFGame.ps1
function Stop-ASBFGame { Param( [Parameter(Mandatory=$false)][String]$Shell ) # first, get Shell we want to talk to $shellLocal = Get-ASDefaultShell if($PSBoundParameters['Shell']) { $shellLocal = $Shell } if([System.String]::IsNullOrEmpty($shellLocal)) { Write-Host 'Target shell is not set. Please specify target shell with -Shell parameter or by Set-ASDefaultShellTarget snippet.' return } # now, create object from all our parameters Write-Host "Terminating BenFox on $($shellLocal)" & "C:\Program Files (x86)\Microsoft GDK\bin\xbapp.exe" terminate /X $($shellLocal) TheLastCaseofBenedictFox_8wekyb3d8bbwe!Game } |