CMDHERE.ahk

As the name proclaims.
Call it from a hotkey while a windows explorer window is active and viola!