I have a batch script. I want to change it to powershell script. Is my code below the same purpose?
My batch script
IF %ODM% EQU 1 (
ECHO #ODM# detected
IF %Stage% EQU 10 (
ECHO Stage Code 10
)
)
Powershell script
If ($ODM = "1")
{Write-Host "#ODM# detected"}
if ($Stge = "10")
{Write-Host "Stage Code 10"}
-eqand not the assignment operator=.