Write a powershell script that implements a directory size analyzer. The script file should be called "ds.ps1" and should be invokable as .ds.ps1 from a command prompt window. In your script you may use common Windows commands.
The script should list the disk storage occupied by each immediate subdirectory of a given argument or the current directory (if no argument is given) with the subdirectory names sorted alphabetically.
Also, list the name of the subdirectory with the highest disk usage along with its storage size.
If more than one subdirectory has the same highest disk usage, list any one of those subdirectories.
Below is a sample result when the script is invoked:
--------------------------------------------------------------------------------
PS F:Classescgs3767ps> .ds F:Classescgs3767
Disk space use (in KB) for each subdirectory:
3,184 asg
1,811 exam
380 score
20,169 ppt
19,820 notes
The subdirectory with the maximum disk space use:
20,169 ppt
PS F:Classescgs3767ps> .ds F:Classescgs3767ps
No subdirectory is found inside F:Classescgs3767ps
PS F:Classescgs3767ps>