Support executable inventory scripts on Windows