fix BringtoFront

It wasn't working for me, but the docs said task.switchtowait can handle a process name as well.