(script_name: str, timeout: int = 60)
| 287 | |
| 288 | |
| 289 | def powershell_file(script_name: str, timeout: int = 60) -> subprocess.CompletedProcess[str]: |
| 290 | script_path = SCRIPTS_DIR / script_name |
| 291 | return run_command( |
| 292 | [ |
| 293 | "powershell", |
| 294 | "-NoProfile", |
| 295 | "-ExecutionPolicy", |
| 296 | "Bypass", |
| 297 | "-File", |
| 298 | str(script_path), |
| 299 | ], |
| 300 | timeout=timeout, |
| 301 | ) |
| 302 | |
| 303 | |
| 304 | def run_powershell_json(command: str, timeout: int = 12) -> Any | None: |
no test coverage detected