For example, in batch i’m used to doing something like this (this is a simple “what OS bitness am I running?” script)
:CheckOS IF EXIST “%PROGRAMFILES(X86)%” (GOTO 64BIT) ELSE (GOTO 32BIT)
:64BIT echo 64-bit… GOTO END
:32BIT echo 32-bit… GOTO END
But how would i do something like this in powershell? Where basically I want to tell it to go to a “section”?
Any help is appreciated