Answers for "save command in variable powershell"

2

powershell command line variables

write-host "There are a total of $($args.count) arguments"
for ( $i = 0; $i -lt $args.count; $i++ ) {
    write-host "Argument  $i is $($args[$i])"
}
Posted by: Guest on June-24-2020
0

how to assign a value to a variable in batch script using powershell

@echo OFF
for /f %%a in ('powershell -file script.ps1') do set "pass=%%~a"
echo %pass%
Posted by: Guest on October-08-2020

Code answers related to "save command in variable powershell"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language