For example:
Remove-Item $directory -Recurse -Force rm $directory -r -fo
gc ./something.yml | ConvertFrom-Yaml | ConvertTo-Json > /some/file.json
For example:
For this specific example ConvertFrom-Yaml actually doesn't exist as a standard cmdlet and ConvertTo-Json isn't aliased by default: