Hi,
In order for you to do this from a bash script, you need to join your linux machine to the AD. WIth respect to your point 2, are you using any tool like 'vastool' for the AD user management for Linux?
And i assume the third point is to for sudo access purpose.
Happy to discuss further , Thank you.