Public/Tools/Start-ASBFGame.ps1
function Start-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 "Launching BenFox on $($shellLocal)" & "C:\Program Files (x86)\Microsoft GDK\bin\xbapp.exe" launch /X $($shellLocal) TheLastCaseofBenedictFox_8wekyb3d8bbwe!Game } |