Running Powershell script with if condition from a .NET app Running Powershell script with if condition from a .NET app powershell powershell

Running Powershell script with if condition from a .NET app


Fixed it by changing the PowerShell script from this:

if ($argument4 -eq "False") {

to this:

if ("$argument4" -eq "False") {

It works with quotation marks around it. I guess the "junk" I was seeing in the script string (like vblf) is normal- I don't work with reading from text files that much.