Try running tsprof without the "%comspec% /c" stuff in front of it. You only needed it before to pipe, since you're using WshPipe now it is unnecessary.