Report question

Question: How to write a PowerShell function to get directories?