About 52 results
Open links in new tab
  1. windows - How to run a PowerShell script - Stack Overflow

    If you are on PowerShell 2.0, use PowerShell.exe's -File parameter to invoke a script from another environment, like cmd.exe. For example: Powershell.exe -File …

  2. Executing an EXE file using a PowerShell script

    Jan 9, 2011 · I'm trying to execute an EXE file using a PowerShell script. If I use the command line it works without a problem (first I supply the name of the executable and series of …

  3. How to run a PowerShell script from a batch file

    To convert a single PowerShell script, simply run this: Get-ChildItem -Path <FILE-PATH> | Convert-PowerShellToBatch Where is the path to the desired file. The converted files are …

  4. How to execute PowerShell commands from a batch file?

    <# : Begin batch (batch script is in commentary of powershell v2.0+) @echo off : Use local variables setlocal : Change current directory to script location - useful for including .ps1 files cd …

  5. How to execute a PowerShell script using C# - Stack Overflow

    Apr 28, 2020 · I need to execute a PowerShell script using C#: ProcessStartInfo startInfo = new ProcessStartInfo(); startInfo.FileName = @&quot;cmd.exe&quot;; startInfo.Arguments ...

  6. How to run an EXE file in PowerShell with parameters with spaces …

    Nov 4, 2009 · When PowerShell sees a command starting with a string it just evaluates the string, that is, it typically echos it to the screen, for example: PS> "Hello World" Hello World If you …

  7. How to run powershell script from .ps1 file? - Stack Overflow

    Oct 23, 2019 · There are several ways to run a .ps1 file. The simplest way is to right-click the file and choose 'Run with PowerShell'. As others have suggested, you can also run your .ps1 file …

  8. Call PowerShell script PS1 from another PS1 script inside …

    Mar 28, 2018 · This will return the path to a file that our PowerShell command line will execute every time you open the app. It will look like this …

  9. How to run powershell command in batch file - Stack Overflow

    Sep 6, 2017 · Get-ChildItem -Path "C:\path\to\powershell\scripts" -Filter *.ps1 | Convert-PowerShellToBatch To convert a single PowerShell script, simply run this: Get-ChildItem -Path …

  10. How to pass command-line arguments to a PowerShell ps1 file

    Aug 18, 2009 · File must be the last parameter in the command, because all characters typed after the File parameter name are interpreted as the script file path followed by the script …

Refresh