# Prompt the user for the Google Drive file ID or URL
$idOrUrl = Read-Host "Enter the Google Drive file ID or URL"
# Extract the file ID from the URL if necessary
if ($idOrUrl -match "/d/([^/]+)/") {
$fileId = $matches[1]
}
else {
$fileId = $idOrUrl
}
# Construct the download URL
$url = "https://drive.google.com/uc?export=download&id=$fileId"
# Prompt the user for the folder path where they want to save the downloaded file
$folderPath = Read-Host "Enter the folder path where you want to save the file"
# Define the filename with the current date
$filename = "myfile_$(Get-Date -Format 'yyyy-MM-dd').xlsx"
# Combine the folder path and...