I'll get right to it:
My join-path idea isn't going to work here, but this is what I am trying to do within powershell.
$HOSTNAME = $env:COMPUTERNAME
powershell -Command cd B:\backup\; ./cmd.exe /c "aws s3 sync . s3://backups123/$HOSTNAME/ --dryrun"
I am attempting to take a backup of a folder that im in within powershell and send it to an s3 bucket. The issue is I have to add computername into the path, but its not passing the variable through.
Anyone have a workaround?