Runner needs admin privileges to deploy

I have created an action on GitHub Enterprise that successfully runs the build on my self managed host. Next I need that build to be deployed to the same host but to do so I need the runner shell to have administrator permissions given that it’s updating IIS files etc. I can’t find a way to configure the runner or the action yaml to tell it I want the shell opened with administrator permissions though and as a result my deploy script fails (same script runs fine if I run it from the server myself in a cmd window with admin). How can I do this?