PortValhalla/scripts/Windows/Software/TrackMania Nations Forever/Main.ps1

22 lines
579 B
PowerShell

param(
$Action,
[hashtable] $Arguments
)
. "$PSScriptRoot/../TrackMania United Forever/Manage.ps1";
. "$PSScriptRoot/../../Scripts/SoftwareManagement.ps1";
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
$parameters = Get-TMForeverInstallerComponents `
-IconName "TmNationsForever" `
-UserDirectory "$HOME/Documents/TmForever" `
-Installer {
Install-WingetPackage Nadeo.TrackManiaNationsForever;
};
foreach ($key in $PSBoundParameters.Keys) {
$parameters.Add($key, $PSBoundParameters[$key]);
}
Start-SoftwareInstaller @parameters;