Parse powershell script parameters


Is there an easy way to parse the params from a powershell script file

I have started reading the file and wondered if there is a better way, maybe by a help/man command?


There are at least two possibilies. First one (imho better): use Get-Command:

For all members look at

The other (harder way) is to use regular expression


Parse powershell script parameters by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply