Is there a way to hide the progress of one meterpreter script, such as an infinitely looping one that closes "taskmgr.exe" every 100ms

thanks