locked
run a function in a cmd file RRS feed

  • Question

  •   I have a function that has 3 parms and want to use it in a cmd file to be called in Batch run.

     example:

      powershell.exe Path\ScripName -Param1 Value1 -Param2 Value2 -Param3 Value3

       When I open a cmd window and run it nothing happens. 


      Thanks.

    Saturday, March 16, 2019 8:54 PM

Answers

  •  Found the issue passing, the params wrong in the batch script. It's working now.

     Thanks.

     

    • Marked as answer by hart60 Saturday, March 16, 2019 11:54 PM
    Saturday, March 16, 2019 11:54 PM

All replies