diff --git a/LANCommander.Playnite.Extension/InstallController.cs b/LANCommander.Playnite.Extension/InstallController.cs index d3fac1d..7025e4a 100644 --- a/LANCommander.Playnite.Extension/InstallController.cs +++ b/LANCommander.Playnite.Extension/InstallController.cs @@ -451,6 +451,10 @@ namespace LANCommander.PlaynitePlugin { var tempPath = Path.GetTempFileName(); + File.Move(tempPath, tempPath + ".ps1"); + + tempPath = tempPath + ".ps1"; + Logger.Trace($"Writing script {script.Name} to {tempPath}"); File.WriteAllText(tempPath, script.Contents);