When script starts, I don’t want anything in the way. How do I use Dismount-DiskImage all mounted images ?
Welcome to the forum.
This forum is for scripting questions rather than script requests. We do not write customized and ready to use scripts or solutions on request.
We actually expect you to make an own attempt at the first place to get your task done or to solve your problem. If you have done so already please document here what exactly you have done and show your code. Then we probably might be able to help you step further.