Scripts fails to identify objects using Ruby version 2.2.6 and RubyMine version 2018 on VM with windows 7

Scripts fails to identify objects using Ruby version 2.2.6 and RubyMine version 2018 on VM with windows 7. But same scripts works fine on Windows 10

Scripts are failing to identify object and thus fails on very first step of the script. Any idea on the solution?