[TIMOB-16961] Fixed bug with code that checks if PowerShell is enabled.