https://andhowto.pages.dev/posts/how-to-debug-a-powershell-script/
How to Debug a PowerShell Script