Creates param and pscutomobject