Powershell script parameter binding to pass parameters examples

powershell command line parameter binding

powershell parameters passed

powershell pass parameters

powershell CmdletBinding

powershell command-line arguments passed to bind the incoming parameter CmdletBinding

 

Must add a line in front of the Param "[CmdletBinding ()]", in order to use the script [to the internal variable name to value method]. While the $ args variable will be empty

powershell command line support: single quotes, double quotes, single quotes Chinese, Chinese double quotation marks

 

Reference: https://www.cnblogs.com/piapia/p/5910255.html

Guess you like

Origin blog.csdn.net/guyan1101/article/details/93738688