Skip to content

Instantly share code, notes, and snippets.

@ianjennings
Created January 27, 2026 20:06
Show Gist options
  • Select an option

  • Save ianjennings/c17e23794fa133a1e935a687c07c4586 to your computer and use it in GitHub Desktop.

Select an option

Save ianjennings/c17e23794fa133a1e935a687c07c4586 to your computer and use it in GitHub Desktop.
const startAppScript = fs.readFileSync(path.join(__dirname, "scripts/start.ps1"), "utf-8");
const installScriptWithParams = `
$DownloadedFile = "${installerPath.replace(/\\/g, '\\\\')}"
$InstallerFile = "${installerFile}"
${installScript}
`;
await testdriver.exec('pwsh', installScriptWithParams, 300000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment