removing unnecessary code. Fixing pipe command for Windows.