Hi
Welcome to Microsoft community.
Microsoft currently has no appropriate command to help you realize this function, but it can use some third-party software to realize it. Since we can't recommend third-party software for you, you can go to Microsoft Learn. Here is a link to the forum, you can click on "Ask a question", there are experts who can provide more professional solutions in that place.
Best regards
Derrick Qian | Microsoft Community Support Specialist