I have some scripts I use, posting them here in case anyone needs something similar
Permissions and credits
Credits and distribution permission
Other user's assetsAll the assets in this file belong to the author, or are from free-to-use modder's resources
Upload permissionYou can upload this file to other sites but you must credit me as the creator of the file
Modification permissionYou are allowed to modify my files and release bug fixes or improve on the features without permission from or credit to me
Conversion permissionYou can convert this file to work with other games as long as you credit me as the creator of the file
Asset use permissionYou are allowed to use the assets in this file without permission or crediting me
Asset use permission in mods/files that are being soldYou are allowed to use the assets in this file in mods/files that are being sold, for money, on Steam Workshop or other platforms
Asset use permission in mods/files that earn donation pointsYou must get permission to earn Donation Points for your mods if they use my assets
Author notes
Thank me if it is useful, hollar back if you have more to add
File credits
This author has not credited anyone else in this file
Donation Points system
Please log in to find out whether this mod is receiving Donation Points
Changelogs
Version 1
Initial upload
#some useful powershell scripts to be ran from the mods folder
#this line will scan subfolders for .bsa and .ba2 files and display a table of files found sorted by size get-childitem -path ./ -recurse -include "*.bsa","*.ba2" | sort-object -property length -descending | format-table -autosize -property length,name,directory | out-string -width 4096 | out-file ./bsasize.txt
#this line will scan subfolders for .pex files and sort the resulting directories by number of files found get-childitem -path ./ -recurse -filter *.pex | group-object -property directory | sort-object -property count -descending | format-table -autosize -property count,name | out-string -width 4096 | out-file ./scriptcount.txt
#this line will copy all found .bsa files to a test directory (makes it easier to examine them all with bsa browser - search in there for .pex to see how many scripts there are in each bsa) #note that this will make a folder in the directory next to it eg if ran in /modorg/mods/ the bsas will be copied into /modorg/bsas_from_script/ mkdir ../bsas_from_script; get-childitem -path ./ -recurse -include "*.bsa","*.ba2" | copy-item -Destination ../bsas_from_script/