Powershell variables not written correctly -
so in powershell script have 2 variables getting multiplied each other, there 1 problem, powershell can't tell want multiply variables each other. script below:
$answer = $a*$equation
the $a variable 7. $equation variable 365*675/54 want script 7*365*675/54 , set answer $answer variable.
when debug script says problem in * symbol. can here?
i use invoke-expression instead of running powershell instance.
$answer = invoke-expression "$a*$equation"
Comments
Post a Comment