Bench migrate permission Error

Recently I have been facing issues with bench --site [name] migrate. It runs all the migrate scripts as “Guest” user which causes permission errors. Currently I have to run the after migrate scripts from bench console to have “Administrator” access. Kindly advice.