I have written many powershell function in a module. Each function has Write-verbose .
for ex:
function fun1{
# code
Write-verbose "Useful information from fun1"
}
function fun2{
# code
Write-verbose "Useful information from fun2"
}
Now when i use the function ,I have to mention verbose for each function call.
fun1 -params <paramvalue> -verbose
fun2 -params <paramvalue> -verbose
Is there any way to globally mention Verbose for all functions? So that i need not to mention verbose for each function.