Skip to main content

compile any powershell .ps1 script to a .cmd file

Project description

PowerShell Compiler

PyPI

Compile any .ps1 file into a .cmd file so that you can execute it with a double-click in Windows.

Usage

Install this package by pipx:

pipx install pwshc

Compile your .ps1 file:

pwshc hello_world.ps1 -o hello_world.cmd 
# -o is optional

Auto elevate

You can add auto elevate (run as admin) code to your .cmd file:

pwshc hello_world.ps1 --auto-elevate

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pwshc-0.2.1.tar.gz (2.5 kB view hashes)

Uploaded Source

Built Distribution

pwshc-0.2.1-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page