Don’t copy and paste the same code over and over again. Instead, create a PowerShell function and save yourself time.
The generated Excel sheet should be easy to read and navigate. Additional options are available to expand/collapse groups with macro-enabled buttons, which is good for nested task sequences. This ...
(on Powershell V4 you may have to install PowershellGet before) or download from here: https://www.powershellgallery.com/packages/SysAdminsFriends/. Functions for ...