PortValhalla/scripts/Windows/Software/TrackMania United Forever/Manage.ps1

16 lines
480 B
PowerShell

Import-Module "$PSScriptRoot/../../Scripts/Context.ps1" -Force;
$path = "$HOME/Documents/TrackMania";
$softwareName = "TmUnitedForever";
function Invoke-BackupTmNations([Context] $context) {
Write-Host "$PSScriptRoot";
Start-Process -WorkingDirectory "$path" `
-FilePath "7z" `
-ArgumentList @(
"a",
"-i@`"$PSScriptRoot/include.txt`"",
$context.SoftwareArchive($softwareName)) `
-Wait `
-NoNewWindow;
}