Made parameter check instead of output warnings as proposed by Erwin.
Made parameter check instead of output warnings as proposed by Erwin.

kilasuit/PnP-PowerShell,iiunknown/PnP-PowerShell,OfficeDev/PnP-PowerShell