Thanks everyone for your tips. I managed to identify my particular problem. In the windows event log I noticed that a service named "Avecto Privilege Guard Service" was kicking off every time SapGuiRecord.exe would run.
I stopped the service from the task manager and my recording problem is solved.
Hopefully this might be a clue for anyone else who might encounter a similar problem in the future.