Changes proposed in this pull request:
conditional switch for credentials parameter based on user provided custom credentials
How to test this code:
run New-RsRestCacheRefreshPlan with custom credential parameter, and without it.
if default logged in user doesn't have access, it shouldn't be able to create new cache refresh plan, but custom credentials user should be able to create it.
Fixes # 351
Changes proposed in this pull request: conditional switch for credentials parameter based on user provided custom credentials
How to test this code: run New-RsRestCacheRefreshPlan with custom credential parameter, and without it. if default logged in user doesn't have access, it shouldn't be able to create new cache refresh plan, but custom credentials user should be able to create it.
Has been tested on (remove any that don't apply):