Build out Parameter Sets for various types of items provided/searched for.
So that you won't see irrelevant params if you are trying to pass a different type.
IE Remove-OneDriveSyncedFolderConfig -SourceFile $filename -SourceScopeLine $sourceScopeLineItem - would not still show Parameters like SourceFolderLine, SourceLine, but would still show SyncedFolders and FilePath
This may vary largely by different types of objects used in a given function
Build out Parameter Sets for various types of items provided/searched for.
So that you won't see irrelevant params if you are trying to pass a different type.
IE
Remove-OneDriveSyncedFolderConfig -SourceFile $filename -SourceScopeLine $sourceScopeLineItem -would not still show Parameters likeSourceFolderLine,SourceLine, but would still showSyncedFoldersandFilePathThis may vary largely by different types of objects used in a given function