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

Popular posts from this blog

Line ending issue with Mercurial or Visual Studio -

tags - Jquery Mixitup plugin help prevent handlers being destroyed -

c# - Delving into the world of XML (Windows Phone) Error I dont understand (The ' ' character, hexadecimal value 0x20, cannot be included in a name.) -