$ErrorActionPreference = 'Stop'
Set-StrictMode -Version Latest

$proj = Split-Path -Parent $MyInvocation.MyCommand.Path
$app = Join-Path $proj 'app.ps1'
if (-not (Test-Path $app)) {
    throw 'app.ps1 tidak ditemukan.'
}

Start-Process powershell -ArgumentList @('-NoProfile','-ExecutionPolicy','Bypass','-File', $app) | Out-Null
Write-Output ('Aplikasi dibuka: ' + $app)
exit 0
