add windows support to play method

test for platform and use `where` for windows (like which)