extract admin token exchange into separate script so it is usable by more than just windows users and update run.windows.py to use new script