Demonstrates forfiles /c invoking a command for each match. Use benign commands in testing.
forfiles /c
Press Win-R
Type: forfiles /p C:\Windows\System32 /m notepad.exe /c "cmd /c ""@path"""
forfiles /p C:\Windows\System32 /m notepad.exe /c "cmd /c ""@path"""
Press Enter (opens Notepad from System32)