Every time I try to execute from Powershell a command that is located in my Program Files folder (e.g. 'scala') I get this output:
PS C:\> scala
the term (x86) was not recognized as a cmdlet, function, executable program or script file [ecc...]
with the error being
+ C:\Program Files (x86)\scala\bin\scala.bat
+ ~~~
I expect this is an error that comes from the space between 'Program FIles' and '(x86)'. But this is written in my PATH system variable and I have no idea how to fix this.
How can I escape that character in order to be able to execute 'scala' (or any other command in that folder)?
Do I have any other option?