Parameter Types in Powershell
In my previous posts I used "-AsJob" parameter to determine if function will be called as a background Powershell job or not. I declared "$AsJob" object as [bool] so one should type explicitly "-AsJob $true" or "-AsJob $false" to make it run. I was trying to figure out a way to get rid of unnecessary $true/$false typings and I encountered with the sites in references. So I learnt what I was searching for; it's called "switch parameter"
For example "Test-FileSizeUntil" function had the following parameter declaration; $AsJob is [bool] -> BAD IDEA :)
it should be:
Check the references for more info..