<# .SYNOPSIS Quick money edit for Pokémon Infinity save files. .DESCRIPTION Wrapper around scripts/infinity-money-trainer.py. Close the game first. .EXAMPLE .\infinity-money.ps1 .\infinity-money.ps1 -Amount 500000 .\infinity-money.ps1 -Show #> [CmdletBinding()] param( [int]$Amount = 999999, [string]$Slot, [switch]$Show, [string]$SaveDir ) $script = Join-Path $PSScriptRoot 'infinity-money-trainer.py' if (-not (Test-Path -LiteralPath $script)) { throw "Missing trainer script: $script" } $args = @($script) if ($SaveDir) { $args += @('--save-dir', $SaveDir) } if ($Show) { $args += 'show' } else { $args += @('set', [string]$Amount) if ($Slot) { $args += @('--slot', $Slot) } } Write-Host "Pokémon Infinity money trainer" -ForegroundColor Cyan Write-Host "Close the game before continuing." -ForegroundColor Yellow python @args