Answers for "powershell.exe command parameters"

5

parameter powershell

Param (
	[Parameter(Mandatory=$True, Position=1)]
	[string]$String,
    
    [Parameter(Mandatory=$True)]
    [int]$Int,
    
    [switch]$Switch = $false
)
Posted by: Guest on March-02-2020
3

execute powershell script from command line with parameters

powershell -Command "& '<PATH_TO_PS1_FILE>' '<ARG_1>' '<ARG_2>' ... '<ARG_N>'"
Posted by: Guest on April-26-2021

Code answers related to "powershell.exe command parameters"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language