How to pass needed parameters to script in Powershell ISE?

后端 未结 4 464
别跟我提以往
别跟我提以往 2021-02-03 16:41

See Title.

I specified needed parameters in the head of a script:

param ($G_ARCHIVE = $(throw \"Need file to upload!\"),
       $G_LOGFILE = $(throw \"Ne         


        
4条回答
  •  自闭症患者
    2021-02-03 17:29

    Use the command pane. Open the script file in the ISE editor, set the breakpoints (F9). Then in the command pane type a command invoking this script with required parameters. I do not think there is another (built-in) way of doing this in ISE.

提交回复
热议问题