Powershell log all your parameters quickly

In later versions of Powershell, rather than log all your parameters being passed to a function you can do this:

function testEmail{

    param($streetAddress, $displayname, $jobtitle, $deskphone, $mobile)

    write-host $PSBoundParameters

}

and that puts out this:

[displayname, Naeem Sengupta] [jobtitle, Tester Engineer] [streetAddress, Stanford Bridge House, 1 Jasmine Road

London] [deskphone, +44 208 8567 1234] [mobile, +44-792-132-2766]

nicely formatted and adapts as you change the parameter list.