Windows 8.1 move selected files in active explorer to anywhere?

I need the simplest way to check if a file explorer window is active and move the selected files/folders in there to a specified temp folder. Any programming/scripting language will be fine.

This website is not affiliated, owned, or endorsed by Microsoft Corporation. It is a member of the Microsoft Partner Program.