This is especially a problem with DSC resources' PSM1 files, created by the xDscResourceModule designer. Worth sending a PR to that module as well.