Deleting it from %temp% folder won't help as I would say it will come back again.
I would follow MLM's answer first because what it's doing is copying it self somewhere else and then starting itself back up again after your computer reboots or it would be running and Avast can't remove it in normal mode so you have to go into SAFE MODE.
The other thing you can try if that doesn't work is to use Malwarebytes. What I've found is while antivirus software is good for viruses, it's not that great with spyware/malware.
Malwarebytes - https://store.malwarebytes.org/342/cookie?affiliate=9230&redirectto=http%3a%2f%2fwww.malwarebytes.org%2f&product=29945 - is the best anti-spyware/malware scanner/remover I know of. Download Malwarebytes FREE (as you only need it to scan and clean otherwise the PRO version has real time scan but it's a PAID version). You can download the free version here: https://store.malwarebytes.org/342/cookie?affiliate=9230&redirectto=http%3a%2f%2fwww.malwarebytes.org%2f&product=29945 . I have used Malwarebytes at various client sites in the past and it has always been good a picking up nasties and removing them that antivirus software such as Symantec, Trend and NOD32 was unable to do.
Here what I would recommend you should do:
1. Download Malwarebytes from here: https://store.malwarebytes.org/342/cookie?affiliate=9230&redirectto=http%3a%2f%2fwww.malwarebytes.org%2f&product=29945
2. Install Malwarebytes on your computer. Update it and RESTART your computer.
3. When your computer starts up, after the BIOS/logo screen, press [F8] and choose SAFE MODE (*very important!*). This will stop any nasties from starting up, then do a FULL SCAN from Malwarebytes and wait for it to finish.
4. Remove/delete all the nasties it has found then reboot your computer again in SAFE MODE.
5. Run FULL SCAN again from Malwarebytes again in case there are more that didn't show up the first time as generally deleting the first lot of nasties, it 'unhides' more nasties.
Now see how your computer behaves afterwards.
Let me know how you get on and whether this has fixed it