Menu

#33 Support PowerShell as a script type

Any
open
nobody
None
5
2023-07-20
2023-07-19
No

YAJSW currently supports Groovy scripts, .bat scripts (on Windows) and .sh scripts (on Linux). It would be nice if it also supported PowerShell (.ps1) scripts.

Note that PowerShell has two different executables, which can co-exist:

  • powershell.exe, which is PS <= 5 and is Windows only.
  • pwsh.exe, which is PS >= 6 and is cross-platform.

So it would be nice if YAJSW tried pwsh first and fell back to powershell.

Discussion

  • rzo

    rzo - 2023-07-20

    powershell can be easily run from a batch file.
    see for example:

    https://stackoverflow.com/questions/19335004/how-to-run-a-powershell-script-from-a-batch-file

     
    • Rich DiCroce

      Rich DiCroce - 2023-07-20

      Yes, and that's what I'm doing now. But it would be nice to cut out the middleman.

       

Log in to post a comment.