Skip to content

Instantly share code, notes, and snippets.

@musukvl
Last active November 25, 2020 12:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save musukvl/38254f417a1a73d80bc692181106c457 to your computer and use it in GitHub Desktop.
Save musukvl/38254f417a1a73d80bc692181106c457 to your computer and use it in GitHub Desktop.
Execute powershell script in CMD and write output to console and commandline
powershell -Command "&'./myscript.ps1' -myscriptparam | tee -FilePath myscriptoutput.log"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment