MCPcopy Create free account
hub / github.com/StarsTom/mobileCodexHelper / powershell_file

Function powershell_file

mobile_codex_control.py:289–301  ·  view source on GitHub ↗
(script_name: str, timeout: int = 60)

Source from the content-addressed store, hash-verified

287
288
289def 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
304def run_powershell_json(command: str, timeout: int = 12) -> Any | None:

Callers 1

perform_actionFunction · 0.85

Calls 1

run_commandFunction · 0.85

Tested by

no test coverage detected