PowerShell for Pentesters
Really good course: https://github.com/dievus/PowerShellForPentesters
This is a mini-cheat sheet with some useful commands. If you want to learn properly then do the course above.
Useful Functions
# Convert a file to Base64
[convert]::ToBase64String((Get-Content -path "your_file_path" -Encoding byte))
The above comes in handy for file extraction because you can just copy the Base64 String to another box and decode then pipe to a file