Detect running or no in windows
Make runas windows async